WARNING: BREAKING: Renamed several functions for data validation #3930

This commit is contained in:
Ray
2024-10-16 19:26:12 +02:00
parent 9b3d019502
commit 8cbf34ddc4
7 changed files with 66 additions and 50 deletions

View File

@@ -1342,10 +1342,10 @@ Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode)
return shader;
}
// Check if a shader is ready
bool IsShaderReady(Shader shader)
// Check if a shader is valid (loaded on GPU)
bool IsShaderValid(Shader shader)
{
return ((shader.id > 0) && // Validate shader id (loaded successfully)
return ((shader.id > 0) && // Validate shader id (GPU loaded successfully)
(shader.locs != NULL)); // Validate memory has been allocated for default shader locations
// The following locations are tried to be set automatically (locs[i] >= 0),