Revert "meta: Don't try to glOrtho when the draw buffer isn't initialized."
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Nov 2012 21:47:13 +0000 (13:47 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Nov 2012 21:49:07 +0000 (13:49 -0800)
This reverts commit 9947470655bbf8f4a9c98fe6d93ff5c3486f1124.
Apparently it caused a lot of Piglit regressions.

src/mesa/drivers/common/meta.c

index e4ff5c9004fe78be10cb6398c86383eda4aae366..08bd899f861ee704d98c53171a95ac69bd0c2488 100644 (file)
@@ -684,11 +684,9 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state)
       _mesa_LoadIdentity();
       _mesa_MatrixMode(GL_PROJECTION);
       _mesa_LoadIdentity();
-      if (ctx->DrawBuffer->Initialized) {
-         _mesa_Ortho(0.0, ctx->DrawBuffer->Width,
-                     0.0, ctx->DrawBuffer->Height,
-                     -1.0, 1.0);
-      }
+      _mesa_Ortho(0.0, ctx->DrawBuffer->Width,
+                  0.0, ctx->DrawBuffer->Height,
+                  -1.0, 1.0);
    }
 
    if (state & MESA_META_CLIP) {