shader prints program id on error
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2025-05-15 09:02:23 -04:00
parent 56068b4bbb
commit f1d75a08a3

View File

@ -532,7 +532,9 @@ public class VisualShader implements Shader {
*/
public int getUniformLocation(String uniformName){
int rVal = GL40.glGetUniformLocation(this.getId(), uniformName);
Globals.renderingEngine.checkError();
if(Globals.renderingEngine.checkError()){
LoggerInterface.loggerRenderer.WARNING("Uniform failed with shader id " + this.getId());
}
return rVal;
}