diff options
author | Brian Paul <[email protected]> | 2012-05-09 12:08:47 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-05-11 16:13:14 -0600 |
commit | 014306578be1f7aeb883e7b22eb255eda82fa011 (patch) | |
tree | b16055b495f538c9ce686a6fe431007a82e3324c /src/mesa/vbo/vbo_exec_api.c | |
parent | da35c2b38c1419690b6647fbc2f930cb04c6877f (diff) |
mesa: implement DEBUG_ALWAYS_FLUSH debug option
This flag has been around for a while but it wasn't actually used anywhere.
Now, setting this flag causes a glFlush() to be issued after each
drawing call (including glBegin/End, glDrawElements, glDrawArrays,
glDrawPixels, glCopyPixels and glBitmap).
Diffstat (limited to 'src/mesa/vbo/vbo_exec_api.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index 0fd8d591517..28d2c4de902 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -862,6 +862,10 @@ static void GLAPIENTRY vbo_exec_End( void ) } else _mesa_error( ctx, GL_INVALID_OPERATION, "glEnd" ); + + if (MESA_DEBUG_FLAGS & DEBUG_ALWAYS_FLUSH) { + _mesa_flush(ctx); + } } |