shader prints program id on error
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
This commit is contained in:
parent
56068b4bbb
commit
f1d75a08a3
@ -532,7 +532,9 @@ public class VisualShader implements Shader {
|
|||||||
*/
|
*/
|
||||||
public int getUniformLocation(String uniformName){
|
public int getUniformLocation(String uniformName){
|
||||||
int rVal = GL40.glGetUniformLocation(this.getId(), 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;
|
return rVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user