From: Zack Rusin Date: Sat, 2 Apr 2011 21:45:57 +0000 (-0400) Subject: Recognize GL_LUMINANCE. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f28277f2b7e22bd03509655b0ba14ced903c44b6;p=apitrace Recognize GL_LUMINANCE. fixes demos/src/glsl/vert-tex --- diff --git a/glsize.hpp b/glsize.hpp index 26d3e91..c1a32c0 100644 --- a/glsize.hpp +++ b/glsize.hpp @@ -1408,6 +1408,7 @@ __glTexImage3D_size(GLenum format, GLenum type, GLsizei width, GLsizei height, G case GL_BLUE: case GL_ALPHA: case GL_INTENSITY: + case GL_LUMINANCE: case GL_DEPTH_COMPONENT: case GL_STENCIL_INDEX: num_channels = 1; @@ -1424,7 +1425,7 @@ __glTexImage3D_size(GLenum format, GLenum type, GLsizei width, GLsizei height, G num_channels = 4; break; default: - OS::DebugMessage("warning: %s: unexpected GLenum 0x%04X\n", __FUNCTION__, format); + OS::DebugMessage("warning: %s: unexpected format GLenum 0x%04X\n", __FUNCTION__, format); num_channels = 0; break; } @@ -1466,7 +1467,7 @@ __glTexImage3D_size(GLenum format, GLenum type, GLsizei width, GLsizei height, G bits_per_pixel = 32; break; default: - OS::DebugMessage("warning: %s: unexpected GLenum 0x%04X\n", __FUNCTION__, type); + OS::DebugMessage("warning: %s: unexpected type GLenum 0x%04X\n", __FUNCTION__, type); bits_per_pixel = 0; break; }