diff options
author | Brian Paul <[email protected]> | 2013-06-09 09:13:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-10 16:35:35 -0600 |
commit | 91405e3502cca72062aeb202922d275bc184f69f (patch) | |
tree | f39d4ea3c4e88887a61db2b30aa5e9269e722b93 /src/mesa/main | |
parent | 761320b197ecc87221d070f5e961032ab0b665a4 (diff) |
mesa: add missing texture strings in tex_target_name()
And add a static assert for the future.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c index 8c3f7830861..9434c1ea2dd 100644 --- a/src/mesa/main/debug.c +++ b/src/mesa/main/debug.c @@ -51,9 +51,14 @@ tex_target_name(GLenum tgt) { GL_TEXTURE_RECTANGLE, "GL_TEXTURE_RECTANGLE" }, { GL_TEXTURE_1D_ARRAY_EXT, "GL_TEXTURE_1D_ARRAY" }, { GL_TEXTURE_2D_ARRAY_EXT, "GL_TEXTURE_2D_ARRAY" }, + { GL_TEXTURE_CUBE_MAP_ARRAY, "GL_TEXTURE_CUBE_MAP_ARRAY" }, + { GL_TEXTURE_BUFFER, "GL_TEXTURE_BUFFER" }, + { GL_TEXTURE_2D_MULTISAMPLE, "GL_TEXTURE_2D_MULTISAMPLE" }, + { GL_TEXTURE_2D_MULTISAMPLE_ARRAY, "GL_TEXTURE_2D_MULTISAMPLE_ARRAY" }, { GL_TEXTURE_EXTERNAL_OES, "GL_TEXTURE_EXTERNAL_OES" } }; GLuint i; + STATIC_ASSERT(Elements(tex_targets) == NUM_TEXTURE_TARGETS); for (i = 0; i < Elements(tex_targets); i++) { if (tex_targets[i].target == tgt) return tex_targets[i].name; |