summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-10-18 13:16:07 +0200
committerraysan5 <[email protected]>2021-10-18 13:16:07 +0200
commita3f9ba87046b494a7d08282049b8be807277121e (patch)
tree5c4d22f212250c011aad6cdd8696bf269b6d81a5 /src
parentccf4329792b8c70806dc66eb7d89c34f291c8756 (diff)
downloadraylib-a3f9ba87046b494a7d08282049b8be807277121e.tar.gz
raylib-a3f9ba87046b494a7d08282049b8be807277121e.zip
Removed useless GL calls #2068
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 5e45a2a9..14309e2f 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1495,7 +1495,6 @@ void rlDisableTexture(void)
void rlEnableTextureCubemap(unsigned int id)
{
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
- glEnable(GL_TEXTURE_CUBE_MAP); // Core in OpenGL 1.4
glBindTexture(GL_TEXTURE_CUBE_MAP, id);
#endif
}
@@ -1504,7 +1503,6 @@ void rlEnableTextureCubemap(unsigned int id)
void rlDisableTextureCubemap(void)
{
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
- glDisable(GL_TEXTURE_CUBE_MAP);
glBindTexture(GL_TEXTURE_CUBE_MAP, 0);
#endif
}