#include #include #include void testTextureUnits(void) { int n; glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &n); fprintf(stderr, "GL_MAX_TEXTURE_IMAGE_UNITS: %x %d\n", GL_MAX_TEXTURE_IMAGE_UNITS, n); }