From: José Fonseca Date: Wed, 24 Oct 2012 12:34:03 +0000 (+0100) Subject: Ignore OpenGL core 3.2 requirement on Windows. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=84a2294dbcab7daad48802df4d4f50ea759008a7;p=apitrace Ignore OpenGL core 3.2 requirement on Windows. Better than aborting, until it is supported. --- diff --git a/retrace/glws_wgl.cpp b/retrace/glws_wgl.cpp index 878726b..de6c7d6 100644 --- a/retrace/glws_wgl.cpp +++ b/retrace/glws_wgl.cpp @@ -303,7 +303,8 @@ cleanup(void) { Visual * createVisual(bool doubleBuffer, Profile profile) { - if (profile != PROFILE_COMPAT) { + if (profile != PROFILE_COMPAT && + profile != PROFILE_CORE) { return NULL; } @@ -323,10 +324,15 @@ createDrawable(const Visual *visual, int width, int height, bool pbuffer) Context * createContext(const Visual *visual, Context *shareContext, Profile profile, bool debug) { - if (profile != PROFILE_COMPAT) { + if (profile != PROFILE_COMPAT && + profile != PROFILE_CORE) { return NULL; } + if (profile == PROFILE_CORE) { + std::cerr << "warning: ignoring OpenGL core profile request\n"; + } + return new WglContext(visual, profile, static_cast(shareContext)); }