Skip to content

Commit de7acdb

Browse files
committed
disable GL debugging on Mac, just in case it fixes the black screen
1 parent a20cae2 commit de7acdb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

libopenage/gui/guisys/private/gui_ctx_setup.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)