Added -d debug option for blenderplayer, and remove some
[blender.git] / source / blender / gpu / intern / gpu_extensions.c
index d900f9c63f299090f35420e86053002554a261ad..c6e9c5aeafd886bc989537de50d34d2ae89b4947 100644 (file)
@@ -706,7 +706,6 @@ GPUShader *GPU_shader_create(const char *vertexcode, const char *fragcode, GPUSh
                glGetObjectParameterivARB(shader->vertex, GL_OBJECT_COMPILE_STATUS_ARB, &status);
 
                if (!status) {
-                       glValidateProgramARB(shader->vertex);
                        glGetInfoLogARB(shader->vertex, sizeof(log), &length, log);
                        shader_print_errors("compile", log, vertexcode);
 
@@ -723,7 +722,6 @@ GPUShader *GPU_shader_create(const char *vertexcode, const char *fragcode, GPUSh
                glGetObjectParameterivARB(shader->fragment, GL_OBJECT_COMPILE_STATUS_ARB, &status);
 
                if (!status) {
-                       glValidateProgramARB(shader->fragment);
                        glGetInfoLogARB(shader->fragment, sizeof(log), &length, log);
                        shader_print_errors("compile", log, fragcode);
 
@@ -771,7 +769,6 @@ GPUShader *GPU_shader_create_lib(const char *code)
        glGetObjectParameterivARB(shader->lib, GL_OBJECT_COMPILE_STATUS_ARB, &status);
 
        if (!status) {
-               glValidateProgramARB(shader->lib);
                glGetInfoLogARB(shader->lib, sizeof(log), &length, log);
                shader_print_errors("compile", log, code);