Webgl points / fix hit detection for retina devices
This commit is contained in:
1 parent
a0ff08b734
commit
2f3e8d04f1
1 file changed
+1
@@ -449,6 +449,7 @@ class WebGLHelper extends Disposable {
|
||||
const gl = this.getGL();
|
||||
|
||||
gl.bindFramebuffer(gl.FRAMEBUFFER, renderTarget.getFramebuffer());
|
||||
gl.viewport(0, 0, frameState.size[0], frameState.size[1]);
|
||||
gl.bindTexture(gl.TEXTURE_2D, renderTarget.getTexture());
|
||||
gl.clearColor(0.0, 0.0, 0.0, 0.0);
|
||||
gl.clear(gl.COLOR_BUFFER_BIT);
|
||||
|
||||
Reference in new issue
Block a user