From eb698de78418da483a91f6543e6c03e1b5b21823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 1 Dec 2016 09:01:25 -0800 Subject: [PATCH] Fixed OSX build. --- src/glcontext_nsgl.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/glcontext_nsgl.mm b/src/glcontext_nsgl.mm index a8ad06b73..2be7c7645 100644 --- a/src/glcontext_nsgl.mm +++ b/src/glcontext_nsgl.mm @@ -226,12 +226,7 @@ namespace bgfx { namespace gl { BX_TRACE("Import:"); # define GL_EXTENSION(_optional, _proto, _func, _import) \ - { \ // When initializing NSOpenGLView programatically (as we are), this sometimes doesn't - // get hooked up properly (especially when there are existing window elements). This ensures - // we are valid. Otherwise, you'll probably get a GL_INVALID_FRAMEBUFFER_OPERATION when - // trying to glClear() for the first time. - [glContext setView:glView]; - + { \ if (_func == NULL) \ { \ _func = (_proto)bx::dlsym(s_opengl, #_import); \