diff options
author | Chia-I Wu <[email protected]> | 2011-03-25 03:10:51 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-23 09:12:12 +0800 |
commit | 29d7a0bb16dba1416e3a63f7f44cf82e307ac46a (patch) | |
tree | 33a92dc6a7aa68e6385825c94c19a0af0137e011 | |
parent | dd250e6045dd290098b59af01b5e1b501535d45a (diff) |
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 <[email protected]>
-rw-r--r-- | src/mesa/main/drawtex.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |