mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
GL_UNSIGNED_SHORT works just fine on macOS?!
This commit is contained in:
@@ -35,7 +35,7 @@ public class Float16FrameBuffer extends FrameBuffer {
|
|||||||
public Float16FrameBuffer (int width, int height, boolean hasDepth) {
|
public Float16FrameBuffer (int width, int height, boolean hasDepth) {
|
||||||
if (App.isAppleM) { // disable float framebuffer for Apple M chips
|
if (App.isAppleM) { // disable float framebuffer for Apple M chips
|
||||||
FrameBufferBuilder bufferBuilder = new FrameBufferBuilder(width, height);
|
FrameBufferBuilder bufferBuilder = new FrameBufferBuilder(width, height);
|
||||||
bufferBuilder.addColorTextureAttachment(GL20.GL_RGBA, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE);
|
bufferBuilder.addColorTextureAttachment(GL20.GL_RGBA, GL20.GL_RGBA, GL20.GL_UNSIGNED_SHORT); // but 16bpp int works perfectly?!
|
||||||
if (hasDepth) bufferBuilder.addBasicDepthRenderBuffer();
|
if (hasDepth) bufferBuilder.addBasicDepthRenderBuffer();
|
||||||
this.bufferBuilder = bufferBuilder;
|
this.bufferBuilder = bufferBuilder;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user