summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-28 14:53:47 -0600
committerBrian <[email protected]>2008-03-28 14:53:47 -0600
commitc62b197b528293abb56b099503344e3cdd7d6c40 (patch)
tree2c288f52217dce9747b54a5942bd686a71b5ad3a /src/mesa/state_tracker/st_atom.c
parent13041da714106ae61b4184b79e847c2b382e07ad (diff)
gallium: implement a glBitmap cache
The bitmap cache attempts to accumulate a series of glBitmap calls in a buffer to effectively render a whole bunch of bitmaps at once. The cache can be disabled, if needed, by setting UseBitmapCache=GL_FALSE.
Diffstat (limited to 'src/mesa/state_tracker/st_atom.c')
-rw-r--r--src/mesa/state_tracker/st_atom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c
index 0e22a2fa6e7..40e4142631b 100644
--- a/src/mesa/state_tracker/st_atom.c
+++ b/src/mesa/state_tracker/st_atom.c
@@ -32,6 +32,7 @@
#include "pipe/p_defines.h"
#include "st_context.h"
#include "st_atom.h"
+#include "st_cb_bitmap.h"
#include "st_program.h"
@@ -147,6 +148,8 @@ void st_validate_state( struct st_context *st )
struct st_state_flags *state = &st->dirty;
GLuint i;
+ st_flush_bitmap_cache(st);
+
check_program_state( st );
if (state->st == 0)