Skip to content

Commit 51f6c76

Browse files
committed
check if alpha is not requested when returning packed float color buffer format
1 parent 00a75dc commit 51f6c76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/renderer/Renderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ public default Format getBestColorTargetFormat(boolean floatingPoint, boolean hi
578578
return Format.RGBA8;
579579
}
580580

581-
if (!highPrecision) {
581+
if (!highPrecision && !withAlpha) {
582582
if (supportPackedFloat && getCaps().contains(Caps.PackedFloatTexture)
583583
&& getCaps().contains(Caps.PackedFloatColorBuffer)) {
584584
return Format.RGB111110F;

0 commit comments

Comments
 (0)