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