projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f136d
)
check for width or height = 0 before calling driver Bitmap func
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 15 Oct 2007 21:30:45 +0000
(15:30 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 15 Oct 2007 21:30:45 +0000
(15:30 -0600)
src/mesa/main/drawpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/drawpix.c
b/src/mesa/main/drawpix.c
index c82abccc41ace331851fef84de889e5ad310bf2d..296dcf8f0bc99ba74aad002e6f5cbd0f93230d5d 100644
(file)
--- 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);