]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/glcontext.cpp
Add a core profile flag to OpenGL context options
[libs/gui.git] / source / graphics / glcontext.cpp
index df6ad604ef7d2b9a4eb563abb7f1c4a458787e9f..0274c9e216bdd7065084b73f74cf69a6ce2077e0 100644 (file)
@@ -14,14 +14,15 @@ GLOptions::GLOptions():
        doublebuffer(true),
        multisample(0),
        forward_compatible(false),
+       core_profile(false),
        gl_version_major(0),
        gl_version_minor(0)
 { }
 
 
 unsupported_gl_mode::unsupported_gl_mode(const GLOptions &opts):
-       runtime_error(format("{ .alpha=%s, .stencil=%s, .doublebuffer=%s, .multisample=%d, .forward_compatible=%s, .gl_version=%d.%d }",
-               opts.alpha, opts.stencil, opts.doublebuffer, opts.multisample, opts.forward_compatible, opts.gl_version_major, opts.gl_version_minor))
+       runtime_error(format("{ .alpha=%s, .stencil=%s, .doublebuffer=%s, .multisample=%d, .forward_compatible=%s, .core_profile=%s, .gl_version=%d.%d }",
+               opts.alpha, opts.stencil, opts.doublebuffer, opts.multisample, opts.forward_compatible, opts.core_profile, opts.gl_version_major, opts.gl_version_minor))
 { }