[Mesa-dev] [PATCH 1/5] glxinfo: Remove ifdef GL_ARB_*_shader cruft
Ian Romanick
idr at freedesktop.org
Sun Jan 26 20:50:25 PST 2014
From: Ian Romanick <ian.d.romanick at intel.com>
It has been 10 years. It's defined.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/xdemos/glxinfo.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c
index 62fb1e8..a2c7b40 100644
--- a/src/xdemos/glxinfo.c
+++ b/src/xdemos/glxinfo.c
@@ -517,7 +517,6 @@ print_shader_limits(GLenum target)
GLenum token;
const char *name;
};
-#if defined(GL_ARB_vertex_shader)
static const struct token_name vertex_limits[] = {
{ GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB, "GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB" },
{ GL_MAX_VARYING_FLOATS_ARB, "GL_MAX_VARYING_FLOATS_ARB" },
@@ -528,19 +527,15 @@ print_shader_limits(GLenum target)
{ GL_MAX_TEXTURE_COORDS_ARB, "GL_MAX_TEXTURE_COORDS_ARB" },
{ (GLenum) 0, NULL }
};
-#endif
-#if defined(GL_ARB_fragment_shader)
static const struct token_name fragment_limits[] = {
{ GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB, "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" },
{ GL_MAX_TEXTURE_COORDS_ARB, "GL_MAX_TEXTURE_COORDS_ARB" },
{ GL_MAX_TEXTURE_IMAGE_UNITS_ARB, "GL_MAX_TEXTURE_IMAGE_UNITS_ARB" },
{ (GLenum) 0, NULL }
};
-#endif
GLint max[1];
int i;
-#if defined(GL_ARB_vertex_shader)
if (target == GL_VERTEX_SHADER_ARB) {
printf(" GL_VERTEX_SHADER_ARB:\n");
for (i = 0; vertex_limits[i].token; i++) {
@@ -550,8 +545,6 @@ print_shader_limits(GLenum target)
}
}
}
-#endif
-#if defined(GL_ARB_fragment_shader)
if (target == GL_FRAGMENT_SHADER_ARB) {
printf(" GL_FRAGMENT_SHADER_ARB:\n");
for (i = 0; fragment_limits[i].token; i++) {
@@ -561,7 +554,6 @@ print_shader_limits(GLenum target)
}
}
}
-#endif
}
@@ -687,16 +679,12 @@ print_limits(const char *extensions, const char *oglstring)
print_program_limits(GL_FRAGMENT_PROGRAM_ARB);
}
#endif
-#if defined(GL_ARB_vertex_shader)
if (extension_supported("GL_ARB_vertex_shader", extensions)) {
print_shader_limits(GL_VERTEX_SHADER_ARB);
}
-#endif
-#if defined(GL_ARB_fragment_shader)
if (extension_supported("GL_ARB_fragment_shader", extensions)) {
print_shader_limits(GL_FRAGMENT_SHADER_ARB);
}
-#endif
}
--
1.8.1.4
More information about the mesa-dev
mailing list