i915: updated render to texture/fbo test
authorBrian Paul <brianp@vmware.com>
Thu, 29 Jan 2009 22:40:21 +0000 (15:40 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Jan 2009 23:03:32 +0000 (16:03 -0700)
src/mesa/drivers/dri/i915/i915_state.c

index ecb763e12777f233581263e4e7945d7d5ffb8b44..814fb59fd3490291834529f76001558872eff099 100644 (file)
@@ -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 */