Skip to content

Commit 8b27675

Browse files
micahrjprokopyl
authored andcommitted
fix leak of temporary GL context on windows
1 parent 267769b commit 8b27675

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gl/win.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ impl GlContext {
192192
};
193193

194194
wglMakeCurrent(hdc_tmp, std::ptr::null_mut());
195+
wglDeleteContext(hglrc_tmp);
195196
ReleaseDC(hwnd_tmp, hdc_tmp);
196197
UnregisterClassW(class as *const WCHAR, hinstance);
197198
DestroyWindow(hwnd_tmp);

0 commit comments

Comments
 (0)