From: Brian Paul Date: Thu, 29 Jan 2009 22:40:21 +0000 (-0700) Subject: i915: updated render to texture/fbo test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b37b1129ea7fed915d353c39d4b74dbdbb7f0a5;p=mesa.git i915: updated render to texture/fbo test --- diff --git a/src/mesa/drivers/dri/i915/i915_state.c b/src/mesa/drivers/dri/i915/i915_state.c index ecb763e1277..814fb59fd34 100644 --- a/src/mesa/drivers/dri/i915/i915_state.c +++ b/src/mesa/drivers/dri/i915/i915_state.c @@ -321,18 +321,9 @@ intelCalcViewport(GLcontext * ctx) if (ctx->DrawBuffer->Name) { /* User created FBO */ - struct intel_renderbuffer *irb - = intel_renderbuffer(ctx->DrawBuffer->_ColorDrawBuffers[0]); - if (irb && !irb->RenderToTexture) { - /* y=0=top */ - yScale = -1.0; - yBias = irb->Base.Height; - } - else { - /* y=0=bottom */ - yScale = 1.0; - yBias = 0.0; - } + /* y=0=bottom */ + yScale = 1.0; + yBias = 0.0; } else { /* window buffer, y=0=top */