gpu: Use premultiplied alpha

This commit is contained in:
Max Weber
2018-12-25 17:34:43 -07:00
parent e3360c4496
commit b1bfe1c47f
3 changed files with 13 additions and 44 deletions

View File

@@ -1199,7 +1199,7 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
interfaceBuffer.put(pixels);
vertexBuffer.flip();
gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);
gl.glBlendFunc(gl.GL_ONE, gl.GL_ONE_MINUS_SRC_ALPHA);
gl.glBindTexture(gl.GL_TEXTURE_2D, interfaceTexture);
if (canvasWidth != lastCanvasWidth || canvasHeight != lastCanvasHeight)