@Override public Layer setShader(GLShader shader) { if (this.shader != null) { this.shader.release(); } this.shader = shader; if (this.shader != null) { this.shader.reference(); } return this; }
@Override public Layer setShader(GLShader shader) { if (this.shader != null) { this.shader.release(); } this.shader = shader; if (this.shader != null) { this.shader.reference(); } return this; }