awt seems to prefer to create textures without premul
This commit is contained in:
parent
f5f653a996
commit
b02264efcc
@ -58,6 +58,9 @@ public final class TextureRenderer {
|
||||
}
|
||||
|
||||
public static Layer draw(Layer layer, float scale, Matrices m) {
|
||||
if (GLAdapter.NON_PREMUL_CANVAS)
|
||||
GL.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
GLState.test(false, false);
|
||||
GLState.blend(true);
|
||||
|
||||
@ -113,6 +116,9 @@ public final class TextureRenderer {
|
||||
|
||||
//GL.glBindTexture(GL20.GL_TEXTURE_2D, 0);
|
||||
|
||||
if (GLAdapter.NON_PREMUL_CANVAS)
|
||||
GL.glBlendFunc(GL20.GL_ONE, GL20.GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
return layer.next;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user