summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-03-25 03:10:51 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-03-25 03:29:54 +0800
commit7baac8d734fa6b5f4b47fb960993bbde12749cbf (patch)
tree192ca8b55c108a398bc4a0f752a4dec81967d6e4
parent887b78bb5b8f702f9b8d65773c42b17f51a51101 (diff)
mesa: fix glDrawTex*
As the case with _mesa_DrawPixels, the driver may install its vertex shader and the vp override flag should be set.
-rw-r--r--src/mesa/main/drawtex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/drawtex.c b/src/mesa/main/drawtex.c
index 2089cdfcef..83485a928d 100644
--- a/src/mesa/main/drawtex.c
+++ b/src/mesa/main/drawtex.c
@@ -45,11 +45,15 @@ draw_texture(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
return;
}
+ _mesa_set_vp_override(ctx, GL_TRUE);
+
if (ctx->NewState)
_mesa_update_state(ctx);
ASSERT(ctx->Driver.DrawTex);
ctx->Driver.DrawTex(ctx, x, y, z, width, height);
+
+ _mesa_set_vp_override(ctx, GL_FALSE);
}