diff options
author | Brian Paul <[email protected]> | 2009-12-30 21:40:12 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-31 08:49:27 -0700 |
commit | ab26682eb4db0dbe160b13f1e320ec9164c3afc5 (patch) | |
tree | fc3c79e9b24560b256f232bd97d5b8d6e6a1cdcb /src/mesa/swrast/s_bitmap.c | |
parent | 699cfaeb3cde2a329b2d79ae09c7783ed4edacfe (diff) |
swrast: add check for conditional rendering
Diffstat (limited to 'src/mesa/swrast/s_bitmap.c')
-rw-r--r-- | src/mesa/swrast/s_bitmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_bitmap.c b/src/mesa/swrast/s_bitmap.c index 3dbdf2a61a8..46c63aa6458 100644 --- a/src/mesa/swrast/s_bitmap.c +++ b/src/mesa/swrast/s_bitmap.c @@ -30,6 +30,7 @@ #include "main/glheader.h" #include "main/bufferobj.h" +#include "main/condrender.h" #include "main/image.h" #include "main/macros.h" #include "main/pixel.h" @@ -56,6 +57,9 @@ _swrast_Bitmap( GLcontext *ctx, GLint px, GLint py, ASSERT(ctx->RenderMode == GL_RENDER); + if (!_mesa_check_conditional_render(ctx)) + return; /* don't draw */ + bitmap = (const GLubyte *) _mesa_map_pbo_source(ctx, unpack, bitmap); if (!bitmap) return; |