X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fdrawtex.c;h=7c0ec832bb9e584a47f2979ca569a7bb9df1d401;hb=2d362a6aee0a1acab08590f2ba0ce50743546209;hp=b9afc9974e0ca02ecdaa499edef4fa5f9c67fc94;hpb=dbf3a15313eed930a3d8fdde12e457259c43651b;p=mesa.git diff --git a/src/mesa/main/drawtex.c b/src/mesa/main/drawtex.c index b9afc9974e0..7c0ec832bb9 100644 --- a/src/mesa/main/drawtex.c +++ b/src/mesa/main/drawtex.c @@ -24,9 +24,7 @@ #include "main/drawtex.h" #include "main/state.h" #include "main/imports.h" - - -#if FEATURE_OES_draw_texture +#include "main/mtypes.h" static void @@ -43,16 +41,20 @@ 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); } void GLAPIENTRY -_mesa_DrawTexf(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height) +_mesa_DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height) { GET_CURRENT_CONTEXT(ctx); draw_texture(ctx, x, y, z, width, height); @@ -60,7 +62,7 @@ _mesa_DrawTexf(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height) void GLAPIENTRY -_mesa_DrawTexfv(const GLfloat *coords) +_mesa_DrawTexfvOES(const GLfloat *coords) { GET_CURRENT_CONTEXT(ctx); draw_texture(ctx, coords[0], coords[1], coords[2], coords[3], coords[4]); @@ -68,7 +70,7 @@ _mesa_DrawTexfv(const GLfloat *coords) void GLAPIENTRY -_mesa_DrawTexi(GLint x, GLint y, GLint z, GLint width, GLint height) +_mesa_DrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height) { GET_CURRENT_CONTEXT(ctx); draw_texture(ctx, (GLfloat) x, (GLfloat) y, (GLfloat) z, @@ -77,7 +79,7 @@ _mesa_DrawTexi(GLint x, GLint y, GLint z, GLint width, GLint height) void GLAPIENTRY -_mesa_DrawTexiv(const GLint *coords) +_mesa_DrawTexivOES(const GLint *coords) { GET_CURRENT_CONTEXT(ctx); draw_texture(ctx, (GLfloat) coords[0], (GLfloat) coords[1], @@ -86,7 +88,7 @@ _mesa_DrawTexiv(const GLint *coords) void GLAPIENTRY -_mesa_DrawTexs(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height) +_mesa_DrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height) { GET_CURRENT_CONTEXT(ctx); draw_texture(ctx, (GLfloat) x, (GLfloat) y, (GLfloat) z, @@ -95,7 +97,7 @@ _mesa_DrawTexs(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height) void GLAPIENTRY -_mesa_DrawTexsv(const GLshort *coords) +_mesa_DrawTexsvOES(const GLshort *coords) { GET_CURRENT_CONTEXT(ctx); draw_texture(ctx, (GLfloat) coords[0], (GLfloat) coords[1], @@ -127,5 +129,3 @@ _mesa_DrawTexxv(const GLfixed *coords) (GLfloat) coords[3] / 65536.0f, (GLfloat) coords[4] / 65536.0f); } - -#endif /* FEATURE_OES_draw_texture */