projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: remove some unneeded forward struct declarations
[mesa.git]
/
src
/
mesa
/
main
/
drawtex.c
diff --git
a/src/mesa/main/drawtex.c
b/src/mesa/main/drawtex.c
index b9afc9974e0ca02ecdaa499edef4fa5f9c67fc94..83485a928d8cf8af7d3cd8d56f4f39fc24ac60cd 100644
(file)
--- a/
src/mesa/main/drawtex.c
+++ b/
src/mesa/main/drawtex.c
@@
-24,6
+24,8
@@
#include "main/drawtex.h"
#include "main/state.h"
#include "main/imports.h"
#include "main/drawtex.h"
#include "main/state.h"
#include "main/imports.h"
+#include "main/mfeatures.h"
+#include "main/mtypes.h"
#if FEATURE_OES_draw_texture
#if FEATURE_OES_draw_texture
@@
-43,11
+45,15
@@
draw_texture(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
return;
}
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);
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);
}
}