intel: remove unused intel_rendering_to_texture()
authorBrian Paul <brianp@vmware.com>
Thu, 29 Jan 2009 18:07:55 +0000 (11:07 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Jan 2009 18:07:55 +0000 (11:07 -0700)
src/mesa/drivers/dri/intel/intel_fbo.h

index 41ced2a01a50cff047bf4a643e384125ac1cc291..4c89a48850e24a24b65a29443fb6804d9fe8a734 100644 (file)
@@ -138,22 +138,4 @@ intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex)
 }
 
 
-/**
- * Are we currently rendering into a texture?
- */
-static INLINE GLboolean
-intel_rendering_to_texture(const GLcontext *ctx)
-{
-   if (ctx->DrawBuffer->Name) {
-      /* User-created FBO */
-      const struct intel_renderbuffer *irb =
-         intel_renderbuffer(ctx->DrawBuffer->_ColorDrawBuffers[0]);
-      return irb && irb->RenderToTexture;
-   }
-   else {
-      return GL_FALSE;
-   }
-}
-
-
 #endif /* INTEL_FBO_H */