From: Brian Paul Date: Thu, 29 Jan 2009 18:07:55 +0000 (-0700) Subject: intel: remove unused intel_rendering_to_texture() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=818bda3d7428469d7c29ebc08c31c30a877747e1;p=mesa.git intel: remove unused intel_rendering_to_texture() --- diff --git a/src/mesa/drivers/dri/intel/intel_fbo.h b/src/mesa/drivers/dri/intel/intel_fbo.h index 41ced2a01a5..4c89a48850e 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.h +++ b/src/mesa/drivers/dri/intel/intel_fbo.h @@ -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 */