Skip to content

Commit 0f094fc

Browse files
authored
Merge pull request #2476 from riccardobl/fixfbnoms
Fix framebuffer initialization when cap TextureMultisample is missing
2 parents ac7ee47 + d5b6b19 commit 0f094fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public void reshape(ViewPort vp, int w, int h) {
501501
}
502502
}
503503

504-
if (numSamples <= 1 || !caps.contains(Caps.OpenGL32)) {
504+
if (numSamples <= 1 || !caps.contains(Caps.OpenGL32) || !caps.contains(Caps.FrameBufferMultisample)) {
505505
renderFrameBuffer = new FrameBuffer(width, height, 1);
506506
renderFrameBuffer.setDepthTarget(FrameBufferTarget.newTarget(depthFormat));
507507
filterTexture = new Texture2D(width, height, fbFormat);

0 commit comments

Comments
 (0)