Fix AbstractShaderRenderer free() null pointer

This commit is contained in:
James Seibel
2024-01-30 19:29:51 -06:00
parent 8a4172dda1
commit a27593149a
@@ -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() {}