X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglws_wgl.cpp;h=de6c7d6b546161fe4c1968cb1f3305632cb1dee9;hb=c0184ad9b5cf84e9ebd6dbea9d8f28256f94ef5a;hp=878726b87f99853d9c92bff014601c1112577338;hpb=315eea7da476434c9c785d745ac4fe6731fb47e0;p=apitrace 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)); }