Skip to content

Commit

Permalink
Merge pull request #54526 from bruvzg/opengl_mt
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Nov 8, 2021
2 parents f9174d1 + 28d7b58 commit 98a1e4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/osx/os_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,11 @@ static void displays_arrangement_changed(CGDirectDisplayID display_id, CGDisplay
CGLSetParameter((CGLContextObj)[context CGLContextObj], kCGLCPSurfaceBackingSize, &dim[0]);
CGLEnable((CGLContextObj)[context CGLContextObj], kCGLCESurfaceBackingSize);

if (get_render_thread_mode() != RENDER_THREAD_UNSAFE) {
CGLError err = CGLEnable((CGLContextObj)[context CGLContextObj], kCGLCEMPEngine); // Enable multithreading.
ERR_FAIL_COND_V(err != kCGLNoError, ERR_UNAVAILABLE);
}

set_use_vsync(p_desired.use_vsync);

if (!is_no_window_mode_enabled()) {
Expand Down

0 comments on commit 98a1e4f

Please sign in to comment.