Better than aborting, until it is supported.
Visual *
createVisual(bool doubleBuffer, Profile profile) {
Visual *
createVisual(bool doubleBuffer, Profile profile) {
- if (profile != PROFILE_COMPAT) {
+ if (profile != PROFILE_COMPAT &&
+ profile != PROFILE_CORE) {
Context *
createContext(const Visual *visual, Context *shareContext, Profile profile, bool debug)
{
Context *
createContext(const Visual *visual, Context *shareContext, Profile profile, bool debug)
{
- if (profile != PROFILE_COMPAT) {
+ if (profile != PROFILE_COMPAT &&
+ profile != PROFILE_CORE) {
+ if (profile == PROFILE_CORE) {
+ std::cerr << "warning: ignoring OpenGL core profile request\n";
+ }
+
return new WglContext(visual, profile, static_cast<WglContext *>(shareContext));
}
return new WglContext(visual, profile, static_cast<WglContext *>(shareContext));
}