Browse Source

no shader guard

master
Odilitime 5 years ago
parent
commit
1cdc96d70e
  1. 4
      src/graphics/opengl/Window.cpp

4
src/graphics/opengl/Window.cpp

@ -701,6 +701,10 @@ void Window::render() { @@ -701,6 +701,10 @@ void Window::render() {
Shader *textureShader = shaderLoader.getShader(VertexShader("TextureShader.vert"),
FragmentShader("TextureShader.frag"));
if (!textureShader) {
std::cout << "Cant load shader" << std::endl;
return;
}
textureShader->bind();
glErr=glGetError();
if(glErr != GL_NO_ERROR) {

Loading…
Cancel
Save