diff --git a/framework/opengl_primitives/src/mm/opengl/shader.cpp b/framework/opengl_primitives/src/mm/opengl/shader.cpp index dd36ca7..9c0dee5 100644 --- a/framework/opengl_primitives/src/mm/opengl/shader.cpp +++ b/framework/opengl_primitives/src/mm/opengl/shader.cpp @@ -320,6 +320,8 @@ std::shared_ptr Shader::create(const std::string& vertexShader, const st return nullptr; } +#if 0 + // TODO: validate validates agains the current ogl state, so this might fail glValidateProgram(program); GLint isValid = 0; glGetProgramiv(program, GL_VALIDATE_STATUS, &isValid); @@ -337,6 +339,7 @@ std::shared_ptr Shader::create(const std::string& vertexShader, const st return nullptr; } +#endif //todo: make some check if linking and validating actually worked return std::shared_ptr(new Shader(program));