Skip to content

Commit

Permalink
Fix[gl bridge]: handle SwapInterval call before init
Browse files Browse the repository at this point in the history
Fix 1.8.9 OptiFine null pointer crashes
  • Loading branch information
khanhduytran0 committed Jan 10, 2024
1 parent 3d8f84d commit aec9389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Natives/egl_bridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@ void pojavMakeCurrent(basic_render_window_t* window) {
}

void pojavSwapInterval(int interval) {
if (!br_swap_interval) return;
br_swap_interval(interval);
}

0 comments on commit aec9389

Please sign in to comment.