Fix AbstractShaderRenderer free() null pointer
This commit is contained in:
+7
-1
@@ -61,7 +61,13 @@ public abstract class AbstractShaderRenderer
|
||||
this.shader.unbind();
|
||||
}
|
||||
|
||||
public void free() { this.shader.free(); }
|
||||
public void free()
|
||||
{
|
||||
if (this.shader != null)
|
||||
{
|
||||
this.shader.free();
|
||||
}
|
||||
}
|
||||
|
||||
protected void onInit() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user