mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
added a few extension #ifdef tests
This commit is contained in:
parent
5e2e96b6f0
commit
2ca741ad4b
1 changed files with 12 additions and 1 deletions
|
|
@ -33,6 +33,8 @@
|
|||
* Brian Paul 26 January 2000
|
||||
*/
|
||||
|
||||
#define GLX_GLXEXT_PROTOTYPES
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <GL/gl.h>
|
||||
|
|
@ -50,6 +52,7 @@
|
|||
#define GLX_TRANSPARENT_RGB 0x8008
|
||||
#endif
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
Normal,
|
||||
|
|
@ -203,7 +206,7 @@ print_program_limits(GLenum target)
|
|||
printf(" %s = %d\n", limits[i].name, max[0]);
|
||||
}
|
||||
}
|
||||
#endif /* GL_ARB_vertex_program */
|
||||
#endif /* GL_ARB_vertex_program / GL_ARB_fragment_program */
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -341,18 +344,26 @@ print_limits(const char *extensions)
|
|||
printf(" GL_MAX_CONVOLUTION_WIDTH/HEIGHT = %d, %d\n", max[0], max[1]);
|
||||
}
|
||||
|
||||
#if defined(GL_ARB_vertex_program)
|
||||
if (strstr(extensions, "GL_ARB_vertex_program")) {
|
||||
print_program_limits(GL_VERTEX_PROGRAM_ARB);
|
||||
}
|
||||
#endif
|
||||
#if defined(GL_ARB_fragment_program)
|
||||
if (strstr(extensions, "GL_ARB_fragment_program")) {
|
||||
print_program_limits(GL_FRAGMENT_PROGRAM_ARB);
|
||||
}
|
||||
#endif
|
||||
#if defined(GL_ARB_vertex_shader)
|
||||
if (strstr(extensions, "GL_ARB_vertex_shader")) {
|
||||
print_shader_limits(GL_VERTEX_SHADER_ARB);
|
||||
}
|
||||
#endif
|
||||
#if defined(GL_ARB_fragment_shader)
|
||||
if (strstr(extensions, "GL_ARB_fragment_shader")) {
|
||||
print_shader_limits(GL_FRAGMENT_SHADER_ARB);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue