mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-18 14:38:08 +00:00
ShaderProgram - Add assertion when getting uniform location
This commit is contained in:
@@ -94,6 +94,7 @@ namespace PckStudio.Rendering.Shader
|
||||
if (locationCache.ContainsKey(name))
|
||||
return locationCache[name];
|
||||
int location = GL.GetUniformLocation(_programId, name);
|
||||
Debug.Assert(location != -1);
|
||||
locationCache.Add(name, location);
|
||||
return location;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user