aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGatonevermind <kevingatotvjb12013@cev.com>2015-05-18 13:12:24 +0200
committerGatonevermind <kevingatotvjb12013@cev.com>2015-05-18 13:12:24 +0200
commitc7ae28aaa2d2cb0da8bf3892720f5cb12ccb56ba (patch)
treec2d2f4451d401e39d920ba5b438c4027e5a654d4 /src
parent19721c70ff8f8567a27f378102f8aa460f344e4c (diff)
downloadraylib-c7ae28aaa2d2cb0da8bf3892720f5cb12ccb56ba.tar.gz
raylib-c7ae28aaa2d2cb0da8bf3892720f5cb12ccb56ba.zip
Small tweak
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 7a73623c..7349af53 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -1618,7 +1618,10 @@ unsigned int rlglLoadTexture(void *data, int width, int height, int textureForma
glGenTextures(1, &id); // Generate Pointer to the texture
- //glActiveTexture(GL_TEXTURE0);
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
+ //glActiveTexture(GL_TEXTURE0); // If not defined, using GL_TEXTURE0 by default (shader texture)
+#endif
+
glBindTexture(GL_TEXTURE_2D, id);
#if defined(GRAPHICS_API_OPENGL_33)