better to generate the library string always because it could lead to null pointer dereferences. I don't have a non-shader system to check so skipping the conditional just to be safe

This commit is contained in:
2011-12-17 13:02:31 +00:00
parent 7d2fbfeb9f
commit b8e96e70dc

View File

@@ -112,9 +112,7 @@ void GPU_extensions_init(void)
if (!GLEW_ARB_vertex_shader) GG.glslsupport = 0;
if (!GLEW_ARB_fragment_shader) GG.glslsupport = 0;
if(GG.glslsupport){
GPU_code_generate_glsl_lib();
}
GPU_code_generate_glsl_lib();
glGetIntegerv(GL_RED_BITS, &r);
glGetIntegerv(GL_GREEN_BITS, &g);