|
|
|
@ -102,6 +102,7 @@ public abstract class Filter implements Savable { |
|
|
|
|
if (numSamples > 1 && caps.contains(Caps.FrameBufferMultisample) && caps.contains(Caps.OpenGL31)) { |
|
|
|
|
renderFrameBuffer = new FrameBuffer(width, height, numSamples); |
|
|
|
|
renderedTexture = new Texture2D(width, height, numSamples, textureFormat); |
|
|
|
|
renderFrameBuffer.setDepthBuffer(depthBufferFormat); |
|
|
|
|
if (renderDepth) { |
|
|
|
|
depthTexture = new Texture2D(width, height, numSamples, depthBufferFormat); |
|
|
|
|
renderFrameBuffer.setDepthTexture(depthTexture); |
|
|
|
@ -109,6 +110,7 @@ public abstract class Filter implements Savable { |
|
|
|
|
} else { |
|
|
|
|
renderFrameBuffer = new FrameBuffer(width, height, 1); |
|
|
|
|
renderedTexture = new Texture2D(width, height, textureFormat); |
|
|
|
|
renderFrameBuffer.setDepthBuffer(depthBufferFormat); |
|
|
|
|
if (renderDepth) { |
|
|
|
|
depthTexture = new Texture2D(width, height, depthBufferFormat); |
|
|
|
|
renderFrameBuffer.setDepthTexture(depthTexture); |
|
|
|
@ -116,7 +118,7 @@ public abstract class Filter implements Savable { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
renderFrameBuffer.setColorTexture(renderedTexture); |
|
|
|
|
renderFrameBuffer.setDepthBuffer(depthBufferFormat); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|