From: Xiang, Haihao Date: Thu, 8 May 2008 03:52:57 +0000 (+0800) Subject: mesa: Call RENDER_FINISH on the zero pixel case. X-Git-Tag: mesa-7.8~5249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9508293e0186ded3be212a377b1fe39d68070da7;p=platform%2Fupstream%2Fmesa.git mesa: Call RENDER_FINISH on the zero pixel case. --- diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c index 81f5caa..730798c 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: