Skip to content
Snippets Groups Projects
Commit 23d5df9d authored by Lioncash's avatar Lioncash
Browse files

gl_state: Fix a condition typo in Apply

parent 932aeb33
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ const void OpenGLState::Apply() {
// Textures
for (unsigned texture_index = 0; texture_index < ARRAY_SIZE(texture_units); ++texture_index) {
if (texture_units[texture_index].enabled_2d != texture_units[texture_index].enabled_2d) {
if (texture_units[texture_index].enabled_2d != cur_state.texture_units[texture_index].enabled_2d) {
glActiveTexture(GL_TEXTURE0 + texture_index);
if (texture_units[texture_index].enabled_2d) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment