summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-31 19:46:44 +0200
committerraysan5 <[email protected]>2021-07-31 19:46:44 +0200
commit5b6d83b53331190db632d68de7d5beb6539ebf3a (patch)
tree989599d045168b9a99c38cfa4647a434fe35ec08 /src/core.c
parent3e75a2109dcc48154fc2e47243a2e365c727ffc6 (diff)
downloadraylib-5b6d83b53331190db632d68de7d5beb6539ebf3a.tar.gz
raylib-5b6d83b53331190db632d68de7d5beb6539ebf3a.zip
REVIEWED: rlgl defines for consistency
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 26492122..b03216cc 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2296,10 +2296,10 @@ Shader LoadShader(const char *vsFileName, const char *fsFileName)
RLAPI Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode)
{
Shader shader = { 0 };
- shader.locs = (int *)RL_CALLOC(MAX_SHADER_LOCATIONS, sizeof(int));
+ shader.locs = (int *)RL_CALLOC(RL_MAX_SHADER_LOCATIONS, sizeof(int));
// NOTE: All locations must be reseted to -1 (no location)
- for (int i = 0; i < MAX_SHADER_LOCATIONS; i++) shader.locs[i] = -1;
+ for (int i = 0; i < RL_MAX_SHADER_LOCATIONS; i++) shader.locs[i] = -1;
shader.id = rlLoadShaderCode(vsCode, fsCode);