mesa: Call RENDER_FINISH on the zero pixel case.
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 8 May 2008 03:52:57 +0000 (11:52 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 8 May 2008 03:52:57 +0000 (11:52 +0800)
src/mesa/swrast/s_drawpix.c

index 81f5caa27065b9edf288fa145a5f11f59416271d..730798c90847524e39db4ca2dfd3695c119f6cca 100644 (file)
@@ -840,8 +840,10 @@ _swrast_DrawPixels( GLcontext *ctx,
       _swrast_validate_derived( ctx );
 
     pixels = _mesa_map_drawpix_pbo(ctx, unpack, pixels);
-    if (!pixels)
+    if (!pixels) {
+       RENDER_FINISH(swrast,ctx);
        return;
+    }
 
    switch (format) {
    case GL_STENCIL_INDEX: