Merge pull request #7090 from Abextm/premul-alpha-external

gpu: Use premultiplied alpha
This commit is contained in:
Adam
2018-12-31 22:41:20 -05:00
committed by GitHub
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)