Reviewed-by: Brian Paul <bri...@vmware.com>
On Sun, Aug 21, 2011 at 3:17 AM, Chia-I Wu <olva...@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@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev