|
|
@ -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)); |
|
|
|
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); |
|
|
@ -1080,6 +1080,7 @@ public class GLRenderer implements Renderer { |
|
|
|
if (linearizeSrgbImages) { |
|
|
|
if (linearizeSrgbImages) { |
|
|
|
stringBuf.append("#define SRGB 1\n"); |
|
|
|
stringBuf.append("#define SRGB 1\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
stringBuf.append("#define ").append(source.getType().name().toUpperCase()).append("_SHADER 1\n"); |
|
|
|
|
|
|
|
|
|
|
|
stringBuf.append(source.getDefines()); |
|
|
|
stringBuf.append(source.getDefines()); |
|
|
|
stringBuf.append(source.getSource()); |
|
|
|
stringBuf.append(source.getSource()); |
|
|
|