You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
[macOS] Enable multithreaded OpenGL engine flag when using multithreaded VisualServer.
(cherry picked from commit 28d7b585c9)
This commit is contained in:
@@ -1682,6 +1682,11 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
|
||||
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()) {
|
||||
|
||||
Reference in New Issue
Block a user