-/* $Id: drawpix.c,v 1.3 1999/10/08 09:27:10 keithw Exp $ */
+/* $Id: drawpix.c,v 1.4 1999/10/19 20:33:57 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLint i;
const GLboolean zoom = ctx->Pixel.ZoomX!=1.0 || ctx->Pixel.ZoomY!=1.0;
+ if (image->Type != GL_BYTE &&
+ image->Type != GL_UNSIGNED_BYTE &&
+ image->Type != GL_SHORT &&
+ image->Type != GL_UNSIGNED_SHORT &&
+ image->Type != GL_INT &&
+ image->Type != GL_UNSIGNED_INT &&
+ image->Type != GL_FLOAT &&
+ image->Type != GL_BITMAP) {
+ gl_error( ctx, GL_INVALID_OPERATION, "glDrawPixels(stencil type)");
+ return;
+ }
+
assert(image);
assert(image->Format == GL_STENCIL_INDEX);
assert(image->Type == GL_UNSIGNED_BYTE || image->Type == GL_BITMAP);