mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 11:49:17 -05:00
Delete shader in case compilation fails
This commit is contained in:
@ -4178,6 +4178,9 @@ unsigned int rlCompileShader(const char *shaderCode, int type)
|
|||||||
RL_FREE(log);
|
RL_FREE(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Unload object allocated by glCreateShader(),
|
||||||
|
// despite failing in the compilation process
|
||||||
|
glDeleteShader(shader);
|
||||||
shader = 0;
|
shader = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user