From 818bda3d7428469d7c29ebc08c31c30a877747e1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 29 Jan 2009 11:07:55 -0700 Subject: [PATCH] intel: remove unused intel_rendering_to_texture() --- src/mesa/drivers/dri/intel/intel_fbo.h | 18 ------------------ 1 file changed, 18 deletions(-) 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 */ -- 2.30.2