From 29d7a0bb16dba1416e3a63f7f44cf82e307ac46a Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 25 Mar 2011 03:10:51 +0800 Subject: [PATCH] mesa: call _mesa_set_vp_override in glDrawTex* The driver may install its own vertex shader. _mesa_set_vp_override must be called so that core mesa can generate correct fragment program.. Reviewed-by: Brian Paul --- 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 2089cdfcef9..83485a928d8 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); } -- 2.30.2