Review PR and comments

This commit is contained in:
Ray
2019-09-22 21:47:19 +02:00
parent a679b0ccc0
commit bdcb16e7bb
4 changed files with 52 additions and 65 deletions

View File

@@ -2967,8 +2967,8 @@ char *LoadText(const char *fileName)
Shader LoadShader(const char *vsFileName, const char *fsFileName)
{
Shader shader = { 0 };
// double allocation causing leak (allocation done in LoadShaderCode)
//shader.locs = (int *)RL_CALLOC(MAX_SHADER_LOCATIONS, sizeof(int));
// NOTE: Shader.locs is allocated by LoadShaderCode()
char *vShaderStr = NULL;
char *fShaderStr = NULL;