Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/BL_Texture.cpp
| Context not available. | |||||
| { | { | ||||
| if (g_max_units < 0) { | if (g_max_units < 0) { | ||||
| GLint unit = 0; | GLint unit = 0; | ||||
| glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &unit); | |||||
| if (GPU_glsl_support()) { | |||||
| glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &unit); | |||||
| } | |||||
| else if (GLEW_ARB_multitexture) { | |||||
| glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &unit); | |||||
| } | |||||
| g_max_units = (MAXTEX >= unit) ? unit : MAXTEX; | g_max_units = (MAXTEX >= unit) ? unit : MAXTEX; | ||||
| } | } | ||||
| Context not available. | |||||