summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2008-05-08 11:52:57 +0800
committerXiang, Haihao <[email protected]>2008-05-08 11:52:57 +0800
commit9508293e0186ded3be212a377b1fe39d68070da7 (patch)
tree49ea3c59341e645619f92d02549b535c7b20de61
parent5b5c9315275752add1215dba0f86d5f5068d856b (diff)
mesa: Call RENDER_FINISH on the zero pixel case.
-rw-r--r--src/mesa/swrast/s_drawpix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c
index 81f5caa2706..730798c9084 100644
--- a/src/mesa/swrast/s_drawpix.c
+++ b/src/mesa/swrast/s_drawpix.c
@@ -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: