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 81f5caa..730798c 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: