summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_drawtex.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-01-05 18:28:57 -0700
committerBrian Paul <[email protected]>2016-01-06 15:53:46 -0700
commitb6bcf0864138787c21b19cda3749c80c6ad74604 (patch)
tree68d6fe7fbb4c362e04883ac6d029841591288d3d /src/mesa/state_tracker/st_cb_drawtex.c
parentc28d72a3473ad0127c82c1244b6688dcc184e85e (diff)
st/mesa: move bitmap cache flushing out of state validation
Just do it where needed (before drawing, clearing, etc). Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_drawtex.c')
-rw-r--r--src/mesa/state_tracker/st_cb_drawtex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawtex.c b/src/mesa/state_tracker/st_cb_drawtex.c
index b3e4b5bb70c..e6ab77fb521 100644
--- a/src/mesa/state_tracker/st_cb_drawtex.c
+++ b/src/mesa/state_tracker/st_cb_drawtex.c
@@ -21,6 +21,7 @@
#include "st_context.h"
#include "st_atom.h"
+#include "st_cb_bitmap.h"
#include "st_cb_drawtex.h"
#include "pipe/p_context.h"
@@ -113,6 +114,8 @@ st_DrawTex(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
struct pipe_vertex_element velements[2 + MAX_TEXTURE_UNITS];
unsigned offset;
+ st_flush_bitmap_cache(st);
+
st_validate_state(st);
/* determine if we need vertex color */