mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
got textures with alpha/rgb working with gl.. changed to ARGB instead of
RGBA for constant
This commit is contained in:
@@ -348,7 +348,7 @@ public class PTriangle implements PConstants
|
||||
F_TEX_HEIGHT = TEX_HEIGHT-1;
|
||||
INTERPOLATE_UV = true;
|
||||
|
||||
if (image.format == RGBA) {
|
||||
if (image.format == ARGB) {
|
||||
m_drawFlags|=R_TEXTURE32;
|
||||
} else if (image.format == RGB) {
|
||||
m_drawFlags|=R_TEXTURE24;
|
||||
|
||||
Reference in New Issue
Block a user