mesa: add glformats integer type/format detection routines
[mesa.git] / src / mesa / main / drawpix.c
index fdcbcccded294d41558336cdf3c25a93b92429a8..49b078289c801ebab635e47069ceda264c1f32aa 100644 (file)
@@ -35,6 +35,7 @@
 #include "pbo.h"
 #include "state.h"
 #include "dispatch.h"
+#include "glformats.h"
 
 
 #if FEATURE_drawpix
@@ -89,7 +90,7 @@ _mesa_DrawPixels( GLsizei width, GLsizei height,
     * input), NVIDIA's implementation also just returns this error despite
     * exposing GL_EXT_texture_integer, just return an error regardless.
     */
-   if (_mesa_is_integer_format(format)) {
+   if (_mesa_is_enum_format_integer(format)) {
       _mesa_error(ctx, GL_INVALID_OPERATION, "glDrawPixels(integer format)");
       goto end;
    }