GLRenderer: fix incorrect gl3 check
Should check against caps; since gl3 is always set on desktop regardless if GL3 is available or not. Also add FBO blit support if we have GL3.
This commit is contained in:
parent
cba39fa0ff
commit
4fef16ee9f
@ -380,14 +380,14 @@ public final class GLRenderer implements Renderer {
|
||||
}
|
||||
|
||||
if (hasExtension("GL_EXT_framebuffer_object")
|
||||
|| gl3 != null
|
||||
|| caps.contains(Caps.OpenGL30)
|
||||
|| caps.contains(Caps.OpenGLES20)) {
|
||||
caps.add(Caps.FrameBuffer);
|
||||
|
||||
limits.put(Limits.RenderBufferSize, getInteger(GLFbo.GL_MAX_RENDERBUFFER_SIZE_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);
|
||||
}
|
||||
|
||||
@ -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));
|
||||
if (limits.get(Limits.FrameBufferMrtAttachments) > 1) {
|
||||
caps.add(Caps.FrameBufferMRT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user