Revert "meta: Don't try to glOrtho when the draw buffer isn't initialized."

This reverts commit 9947470655.
Apparently it caused a lot of Piglit regressions.
This commit is contained in:
Kenneth Graunke 2012-11-29 13:47:13 -08:00
parent 3fcb3fbf22
commit 53ba40c156
1 changed files with 3 additions and 5 deletions

View 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) {