mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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 <brianp@vmware.com>
This commit is contained in:
parent
dd250e6045
commit
29d7a0bb16
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue