Skip to content

Commit a23aa8f

Browse files
committed
Fixed rendering issues on Linux/AMD
1 parent 31f85ff commit a23aa8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/net/raphimc/noteblocktool/frames/visualizer/DropRenderer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ public void init() {
128128
this.pianoKeyLastPlayed = new long[PIANO_KEY_COUNT];
129129
this.pianoKeyLastColors = new Color[PIANO_KEY_COUNT];
130130
this.lastFpsUpdateTime = System.nanoTime();
131-
final float[] clearColor = Color.GRAY.toRGBAF();
132-
ThinGL.getImplementation().getCurrentFramebuffer().setClearColor(clearColor[0], clearColor[1], clearColor[2], clearColor[3]);
133131
}
134132

135133
public void delete() {

src/main/java/net/raphimc/noteblocktool/frames/visualizer/VisualizerWindow.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ private VisualizerWindow() {
8686
GL11C.glEnable(GL11C.GL_DEPTH_TEST);
8787
GL11C.glDepthFunc(GL11C.GL_LEQUAL);
8888
final TextureFramebuffer mainFramebuffer = new TextureFramebuffer();
89+
mainFramebuffer.setClearColor(0.5F, 0.5F, 0.5F, 0.5F);
8990
final Matrix4fStack positionMatrix = new Matrix4fStack(8);
9091

9192
while (/*!GLFW.glfwWindowShouldClose(this.window)*/true) {
@@ -98,6 +99,7 @@ private VisualizerWindow() {
9899
}
99100
positionMatrix.popMatrix();
100101

102+
mainFramebuffer.unbind();
101103
mainFramebuffer.blitTo(WindowFramebuffer.INSTANCE, true, false, false);
102104
ThinGL.endFrame();
103105
GLFW.glfwSwapBuffers(this.window);

0 commit comments

Comments
 (0)