From 25ceec9b8f8f414b995469a24ade69725ead4fdb Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 22 Nov 2017 14:56:45 +0100 Subject: [PATCH] Corrected default textures locations By default, we look for texture1 for LOC_MAP_SPECULAR and texture2 for LOC_MAP_NORMAL --- src/rlgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rlgl.c b/src/rlgl.c index f273e55d4..6ae7df4c5 100644 --- a/src/rlgl.c +++ b/src/rlgl.c @@ -3362,8 +3362,8 @@ static void SetShaderDefaultLocations(Shader *shader) // Get handles to GLSL uniform locations (fragment shader) shader->locs[LOC_COLOR_DIFFUSE] = glGetUniformLocation(shader->id, "colDiffuse"); shader->locs[LOC_MAP_DIFFUSE] = glGetUniformLocation(shader->id, "texture0"); - shader->locs[LOC_MAP_NORMAL] = glGetUniformLocation(shader->id, "texture1"); - shader->locs[LOC_MAP_SPECULAR] = glGetUniformLocation(shader->id, "texture2"); + shader->locs[LOC_MAP_SPECULAR] = glGetUniformLocation(shader->id, "texture1"); + shader->locs[LOC_MAP_NORMAL] = glGetUniformLocation(shader->id, "texture2"); } // Unload default shader