enable MRT on gl3

experimental
David Bernard 10 years ago
parent 2b8898b7b2
commit 704c3f1a10
  1. 2
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

@ -401,7 +401,7 @@ public class GLRenderer implements Renderer {
}
}
if (hasExtension("GL_ARB_draw_buffers")) {
if (hasExtension("GL_ARB_draw_buffers") || gl3 != null) {
limits.put(Limits.FrameBufferMrtAttachments, getInteger(GLExt.GL_MAX_DRAW_BUFFERS_ARB));
if (limits.get(Limits.FrameBufferMrtAttachments) > 1) {
caps.add(Caps.FrameBufferMRT);

Loading…
Cancel
Save