aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-15 15:30:45 -0600
committerBrian <[email protected]>2007-10-15 15:30:45 -0600
commitce8988018ca2d838c93df904271b2afc62d6b021 (patch)
tree965ef334f062ed5a902647c02b479835cf63c099 /src/mesa/main
parentb1f136dba21c688a2fa347a56ab8bf8c784dd51f (diff)
check for width or height = 0 before calling driver Bitmap func
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/drawpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c
index c82abccc41a..296dcf8f0bc 100644
--- a/src/mesa/main/drawpix.c
+++ b/src/mesa/main/drawpix.c
@@ -341,7 +341,7 @@ _mesa_Bitmap( GLsizei width, GLsizei height,
}
if (ctx->RenderMode == GL_RENDER) {
- if (bitmap) {
+ if (bitmap && width && height) {
/* Truncate, to satisfy conformance tests (matches SGI's OpenGL). */
GLint x = IFLOOR(ctx->Current.RasterPos[0] - xorig);
GLint y = IFLOOR(ctx->Current.RasterPos[1] - yorig);