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:
parent
3fcb3fbf22
commit
53ba40c156
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue