From 7baac8d734fa6b5f4b47fb960993bbde12749cbf Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 25 Mar 2011 03:10:51 +0800 Subject: mesa: fix glDrawTex* As the case with _mesa_DrawPixels, the driver may install its vertex shader and the vp override flag should be set. --- src/mesa/main/drawtex.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3