Merge branch 'mesa_7_7_branch'
[mesa.git] / src / mesa / swrast / s_bitmap.c
index 57a42b3f5db79b2202910154a09e872a86145a35..59e26e9ea3186f1ab58d3fc9edb322e4370ac1a1 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "main/glheader.h"
 #include "main/bufferobj.h"
+#include "main/condrender.h"
 #include "main/image.h"
 #include "main/macros.h"
 
@@ -55,6 +56,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;