diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2013-04-26 08:36:13 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2013-04-26 08:36:13 +0100 |
commit | b20c7c061895923aed9f81ec69556557929a6b14 (patch) | |
tree | 2037727c21cb467264ee67eec41fa1853759c43e /helpers | |
parent | 90808c138de511a81b6b85d22a9400007d91336b (diff) |
gltrace: Recognize GL_*_INTEGER in _gl_format_channels (issue #123).
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glsize.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/helpers/glsize.hpp b/helpers/glsize.hpp index 2358370b..6b1ad185 100644 --- a/helpers/glsize.hpp +++ b/helpers/glsize.hpp @@ -711,26 +711,37 @@ _gl_format_channels(GLenum format) { switch (format) { case GL_COLOR_INDEX: case GL_RED: + case GL_RED_INTEGER: case GL_GREEN: + case GL_GREEN_INTEGER: case GL_BLUE: + case GL_BLUE_INTEGER: case GL_ALPHA: + case GL_ALPHA_INTEGER: case GL_INTENSITY: case GL_LUMINANCE: + case GL_LUMINANCE_INTEGER_EXT: case GL_DEPTH_COMPONENT: case GL_STENCIL_INDEX: return 1; case GL_DEPTH_STENCIL: case GL_LUMINANCE_ALPHA: + case GL_LUMINANCE_ALPHA_INTEGER_EXT: case GL_RG: + case GL_RG_INTEGER: case GL_HILO_NV: case GL_DSDT_NV: return 2; case GL_RGB: + case GL_RGB_INTEGER: case GL_BGR: + case GL_BGR_INTEGER: case GL_DSDT_MAG_NV: return 3; case GL_RGBA: + case GL_RGBA_INTEGER: case GL_BGRA: + case GL_BGRA_INTEGER: case GL_ABGR_EXT: case GL_CMYK_EXT: case GL_DSDT_MAG_VIB_NV: |