]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/glcontext.cpp
Alter the starting condition for gestures
[libs/gui.git] / source / graphics / glcontext.cpp
index ab0ea7ad59267eb55625c42c2a26a72852450601..df6ad604ef7d2b9a4eb563abb7f1c4a458787e9f 100644 (file)
@@ -12,13 +12,16 @@ GLOptions::GLOptions():
        alpha(false),
        stencil(false),
        doublebuffer(true),
-       multisample(0)
+       multisample(0),
+       forward_compatible(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 }",
-               opts.alpha, opts.stencil, opts.doublebuffer, opts.multisample))
+       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))
 { }
 
 
@@ -41,6 +44,9 @@ void GLContext::platform_init(const GLOptions &)
 GLContext::~GLContext()
 { }
 
+void GLContext::set_swap_interval(unsigned)
+{ }
+
 void GLContext::swap_buffers()
 { }