diff options
author | Brian Paul <[email protected]> | 2000-06-27 04:32:16 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-06-27 04:32:16 +0000 |
commit | 308a7152b2adac7c6e4429e42618696aeac07a48 (patch) | |
tree | 92998d6a8823b0d9384afc2d8e7f117927bbe2f7 /src/mesa/main | |
parent | 5f1eb35ee2be8cca48aab9a53a989c9a5ff73438 (diff) |
fixed type checking error
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/drawpix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index f2bbd8a913f..a7f309029d6 100644 --- a/src/mesa/main/drawpix.c +++ b/src/mesa/main/drawpix.c @@ -1,4 +1,4 @@ -/* $Id: drawpix.c,v 1.22 2000/05/04 13:48:49 brianp Exp $ */ +/* $Id: drawpix.c,v 1.23 2000/06/27 04:32:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -512,11 +512,11 @@ draw_depth_pixels( GLcontext *ctx, GLint x, GLint y, GLuint ispan[MAX_WIDTH]; GLint drawWidth = (width > MAX_WIDTH) ? MAX_WIDTH : width; - if (type != GL_UNSIGNED_BYTE + if (type != GL_BYTE && type != GL_UNSIGNED_BYTE + && type != GL_SHORT && type != GL_UNSIGNED_SHORT - && type != GL_UNSIGNED_SHORT - && type != GL_UNSIGNED_INT + && type != GL_INT && type != GL_UNSIGNED_INT && type != GL_FLOAT) { gl_error(ctx, GL_INVALID_ENUM, "glDrawPixels(type)"); |