mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
renderer/opengl: need to release OpenGL context with glfw
This commit is contained in:
@ -532,6 +532,12 @@ pub fn surfaceInit(surface: *apprt.Surface) !void {
|
|||||||
pub fn finalizeSurfaceInit(self: *const OpenGL, surface: *apprt.Surface) !void {
|
pub fn finalizeSurfaceInit(self: *const OpenGL, surface: *apprt.Surface) !void {
|
||||||
_ = self;
|
_ = self;
|
||||||
_ = surface;
|
_ = surface;
|
||||||
|
|
||||||
|
// For GLFW, we grabbed the OpenGL context in surfaceInit and we
|
||||||
|
// need to release it before we start the renderer thread.
|
||||||
|
if (apprt.runtime == apprt.glfw) {
|
||||||
|
glfw.makeContextCurrent(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This is called if this renderer runs DevMode.
|
/// This is called if this renderer runs DevMode.
|
||||||
|
Reference in New Issue
Block a user