Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/rs117/hd/renderer/zone/ZoneRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
import static net.runelite.api.Perspective.*;
import static org.lwjgl.opengl.GL33C.*;
import static org.lwjgl.opengl.GL40.GL_DRAW_INDIRECT_BUFFER;
import static rs117.hd.HdPlugin.APPLE;
import static rs117.hd.HdPlugin.COLOR_FILTER_FADE_DURATION;
import static rs117.hd.HdPlugin.NEAR_PLANE;
import static rs117.hd.HdPlugin.ORTHOGRAPHIC_ZOOM;
Expand Down Expand Up @@ -1149,6 +1150,15 @@ public void draw(int overlayColor) {

// Blit from the resolved FBO to the default FBO
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, plugin.awtContext.getFramebuffer(false));

if (APPLE && !client.isResized()) {
// On macOS, we need to ensure that the alpha channel is opaque to prevent whatever
// is beneath from leaking through. In fixed mode, the MSAA resolve alone is not
// sufficient, since the viewport only covers part of the screen.
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
}

glBlitFramebuffer(
0,
0,
Expand Down