mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-10 01:09:10 -04:00
**WARNING: BREAKING:** REDESIGNED: rlgl shader loading API function names for more consistency #5631
ADDED: `rlUnloadShader()` to unload shaders (that function was missing and compute shaders leak memory) RENAMED: `rlCompileShader()` to p `rlLoadShader()` to be consistent with `rlUnloadShader()` RENAMED: `rlLoadShaderCode()` to `rlLoadShaderProgram()`, more descriptive of return RENAMED: `rlLoadShaderProgram()` to `rlLoadShaderProgramEx()` RENAMED: `rlLoadComputeShaderProgram()` to `rlLoadShaderProgramCompute()` RENAMED: Some functions parameters for consistency
This commit is contained in:
@ -1243,7 +1243,7 @@ Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode)
|
||||
{
|
||||
Shader shader = { 0 };
|
||||
|
||||
shader.id = rlLoadShaderCode(vsCode, fsCode);
|
||||
shader.id = rlLoadShaderProgram(vsCode, fsCode);
|
||||
|
||||
if (shader.id == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user