Skip to content

Commit

Permalink
Unbind GL_ARRAY_BUFFER to fix GUI texture corruption in GLES
Browse files Browse the repository at this point in the history
  • Loading branch information
KOPRajs committed Apr 17, 2024
1 parent 6e4f781 commit f9e061b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/cores/RetroPlayer/shaders/gl/ShaderGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ void CShaderGL::Render(IShaderTexture* source, IShaderTexture* target)
glBindVertexArray(VAO);
#endif
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);

glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
}

void CShaderGL::SetShaderParameters()
Expand Down

0 comments on commit f9e061b

Please sign in to comment.