From 91405e3502cca72062aeb202922d275bc184f69f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 9 Jun 2013 09:13:00 -0700 Subject: [PATCH] mesa: add missing texture strings in tex_target_name() And add a static assert for the future. --- src/mesa/main/debug.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2