Skip to content

Commit

Permalink
Add missing glCompileShader calls
Browse files Browse the repository at this point in the history
  • Loading branch information
gusandrianos committed Oct 11, 2019
1 parent 0375f92 commit 79b1e74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/RetroPlayer/shaders/gl/ShaderGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ bool CShaderGL::Create(const std::string& shaderSource, const std::string& shade
GLuint vShader;
vShader = glCreateShader(GL_VERTEX_SHADER);
glShaderSource(vShader, 1, &vertexShaderSource, NULL);
glCompileShader(vShader);

GLuint fShader;
fShader = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(fShader, 1, &fragmentShaderSource, NULL);
glCompileShader(fShader); //TODO: Make this good

m_shaderProgram = glCreateProgram();
glAttachShader(m_shaderProgram, vShader);
Expand Down

0 comments on commit 79b1e74

Please sign in to comment.