Files
ghostty/passthrough.glsl
Leah Amelia Chen 0fca3d34a5 gtk/imgui_widget: remove direct call to glClearColor
Since the refactor to move our OpenGL context off-thread there is no more
GLAD context loaded on the main thread for this widget, so calling ANY
OpenGL function will crash the entire app.

I don't think the call even worked as intended? I at least can't seem to
tell any difference when the clear commands are simply removed.
Maybe they were useful before.
2026-09-18 00:29:18 +08:00

5 lines
155 B
GLSL

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = fragCoord / iResolution.xy;
fragColor = vec4(texture(iChannel0, uv).rgb, 1.0);
}