Skip to content

Commit b1bba00

Browse files
authored
fix the fix
1 parent c0564e0 commit b1bba00

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,16 @@ public void initialize(RenderManager rm, ViewPort vp) {
206206
}
207207

208208
// Determine optimal framebuffer format based on renderer capabilities
209-
if (fbFormat == null) fbFormat = Format.RGB111110F;
210-
if (!renderer.getCaps().contains(Caps.PackedFloatTexture)) {
211-
if (renderer.getCaps().contains(Caps.FloatColorBufferRGB)) {
212-
fbFormat = Format.RGB16F;
213-
} else if (renderer.getCaps().contains(Caps.FloatColorBufferRGBA)) {
214-
fbFormat = Format.RGBA16F;
215-
} else {
216-
fbFormat = Format.RGB8;
209+
if (fbFormat == null) {
210+
fbFormat = Format.RGB111110F;
211+
if (!renderer.getCaps().contains(Caps.PackedFloatTexture)) {
212+
if (renderer.getCaps().contains(Caps.FloatColorBufferRGB)) {
213+
fbFormat = Format.RGB16F;
214+
} else if (renderer.getCaps().contains(Caps.FloatColorBufferRGBA)) {
215+
fbFormat = Format.RGBA16F;
216+
} else {
217+
fbFormat = Format.RGB8;
218+
}
217219
}
218220
}
219221

0 commit comments

Comments
 (0)