From c7ae28aaa2d2cb0da8bf3892720f5cb12ccb56ba Mon Sep 17 00:00:00 2001 From: Gatonevermind Date: Mon, 18 May 2015 13:12:24 +0200 Subject: [PATCH] Small tweak --- src/rlgl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)