File tree Expand file tree Collapse file tree
libopenage/gui/guisys/private Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,19 +66,25 @@ GuiSeparateRenderingContext::GuiSeparateRenderingContext(SDL_Window *window)
6666 this ->main_ctx .create ();
6767 assert (this ->main_ctx .isValid ());
6868
69+ #ifndef __APPLE__
6970 auto context_debug_parameters = get_current_opengl_debug_parameters (this ->main_ctx );
71+ #endif
7072
7173 this ->ctx .setFormat (this ->main_ctx .format ());
7274 this ->ctx .setShareContext (&this ->main_ctx );
7375 this ->ctx .create ();
7476 assert (this ->ctx .isValid ());
77+ #ifndef __APPLE__
7578 assert (!(this ->main_ctx .format ().options () ^ this ->ctx .format ().options ()).testFlag (QSurfaceFormat::DebugContext));
79+ #endif
7680
7781 this ->offscreen_surface .setFormat (this ->ctx .format ());
7882 this ->offscreen_surface .create ();
7983
8084 this ->pre_render ();
85+ #ifndef __APPLE__
8186 apply_opengl_debug_parameters (context_debug_parameters, this ->ctx );
87+ #endif
8288 this ->post_render ();
8389 } else {
8490 throw CtxExtractionException (" creating separate context for GUI failed" );
You can’t perform that action at this time.
0 commit comments