mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-02 08:25:07 +01:00
Merge pull request #803 from lioncash/typo
gl_state: Fix a condition typo in Apply
This commit is contained in:
commit
4c207798b4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user