Skip to content

Commit d26224a

Browse files
committed
last commit was missing the if statement
1 parent f8e9707 commit d26224a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Platform/src/foster_renderer_opengl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,8 @@ void FosterTextureDestroy_OpenGL(FosterTexture* texture)
11821182
// make sure this isn't bound anymore
11831183
for (int i = 0; i < FOSTER_MAX_UNIFORM_TEXTURES; i ++)
11841184
{
1185-
fgl.stateTextureSlots[i] == tex->id;
1186-
FosterBindTexture(i, 0);
1185+
if (fgl.stateTextureSlots[i] == tex->id)
1186+
FosterBindTexture(i, 0);
11871187
}
11881188

11891189
// delete it

0 commit comments

Comments
 (0)