[Mesa-dev] [PATCH] mesa: call _mesa_set_vp_override in glDrawTex*
Brian Paul
brian.e.paul at gmail.com
Mon Aug 22 07:14:00 PDT 2011
Reviewed-by: Brian Paul <brianp at vmware.com>
On Sun, Aug 21, 2011 at 3:17 AM, Chia-I Wu <olvaffe at gmail.com> wrote:
> The driver may install its own vertex shader. _mesa_set_vp_override
> must be called so that core mesa can generate correct fragment program..
> ---
> 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 2089cdf..83485a9 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);
> }
>
>
> --
> 1.7.5.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list