BGE: remove calls to GLSL support query (it's always supported)
Reworked logic in the few places that still called this. Deleted the "GLSL not supported" fallbacks. Also removed some nearby checks for ARB_multitexture and OpenGL 1.1. Blender 2.77 removed checks like this, but game engine still has some.
This commit is contained in:
@@ -420,14 +420,7 @@ int BL_Texture::GetMaxUnits()
|
||||
{
|
||||
if (g_max_units < 0) {
|
||||
GLint unit = 0;
|
||||
|
||||
if (GPU_glsl_support()) {
|
||||
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &unit);
|
||||
}
|
||||
else if (GLEW_ARB_multitexture) {
|
||||
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &unit);
|
||||
}
|
||||
|
||||
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &unit);
|
||||
g_max_units = (MAXTEX >= unit) ? unit : MAXTEX;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user