|
|
@ -380,14 +380,14 @@ public final class GLRenderer implements Renderer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (hasExtension("GL_EXT_framebuffer_object") |
|
|
|
if (hasExtension("GL_EXT_framebuffer_object") |
|
|
|
|| gl3 != null |
|
|
|
|| caps.contains(Caps.OpenGL30) |
|
|
|
|| caps.contains(Caps.OpenGLES20)) { |
|
|
|
|| caps.contains(Caps.OpenGLES20)) { |
|
|
|
caps.add(Caps.FrameBuffer); |
|
|
|
caps.add(Caps.FrameBuffer); |
|
|
|
|
|
|
|
|
|
|
|
limits.put(Limits.RenderBufferSize, getInteger(GLFbo.GL_MAX_RENDERBUFFER_SIZE_EXT)); |
|
|
|
limits.put(Limits.RenderBufferSize, getInteger(GLFbo.GL_MAX_RENDERBUFFER_SIZE_EXT)); |
|
|
|
limits.put(Limits.FrameBufferAttachments, getInteger(GLFbo.GL_MAX_COLOR_ATTACHMENTS_EXT)); |
|
|
|
limits.put(Limits.FrameBufferAttachments, getInteger(GLFbo.GL_MAX_COLOR_ATTACHMENTS_EXT)); |
|
|
|
|
|
|
|
|
|
|
|
if (hasExtension("GL_EXT_framebuffer_blit")) { |
|
|
|
if (hasExtension("GL_EXT_framebuffer_blit") || caps.contains(Caps.OpenGL30)) { |
|
|
|
caps.add(Caps.FrameBufferBlit); |
|
|
|
caps.add(Caps.FrameBufferBlit); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -406,7 +406,7 @@ public final class GLRenderer implements Renderer { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (hasExtension("GL_ARB_draw_buffers") || gl3 != null) { |
|
|
|
if (hasExtension("GL_ARB_draw_buffers") || caps.contains(Caps.OpenGL30)) { |
|
|
|
limits.put(Limits.FrameBufferMrtAttachments, getInteger(GLExt.GL_MAX_DRAW_BUFFERS_ARB)); |
|
|
|
limits.put(Limits.FrameBufferMrtAttachments, getInteger(GLExt.GL_MAX_DRAW_BUFFERS_ARB)); |
|
|
|
if (limits.get(Limits.FrameBufferMrtAttachments) > 1) { |
|
|
|
if (limits.get(Limits.FrameBufferMrtAttachments) > 1) { |
|
|
|
caps.add(Caps.FrameBufferMRT); |
|
|
|
caps.add(Caps.FrameBufferMRT); |
|
|
|