Fix[gl bridge]: handle SwapInterval call before init
Fix 1.8.9 OptiFine null pointer crashes
This commit is contained in:
1 parent
3d8f84d445
commit
aec93896fd
1 file changed
+1
@@ -112,5 +112,6 @@ void* pojavCreateContext(basic_render_window_t* contextSrc) {
|
||||
}
|
||||
|
||||
void pojavSwapInterval(int interval) {
|
||||
if (!br_swap_interval) return;
|
||||
br_swap_interval(interval);
|
||||
}
|
||||
Reference in new issue
Block a user