]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/glcontext.cpp
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / graphics / glcontext.cpp
index ec073cb79c2c9928fc6dece00604807f2aa540dc..a66ca307b726a59a7ca1a025137b377fc401bd7c 100644 (file)
@@ -1,6 +1,6 @@
+#include "glcontext.h"
 #include <stdexcept>
 #include <msp/strings/format.h>
-#include "glcontext.h"
 #include "window.h"
 
 using namespace std;
@@ -8,18 +8,6 @@ using namespace std;
 namespace Msp {
 namespace Graphics {
 
-GLOptions::GLOptions():
-       alpha(false),
-       stencil(false),
-       doublebuffer(true),
-       multisample(0),
-       forward_compatible(false),
-       core_profile(false),
-       gl_version_major(DEFAULT_VERSION),
-       gl_version_minor(DEFAULT_VERSION)
-{ }
-
-
 unsupported_gl_mode::unsupported_gl_mode(const GLOptions &opts):
        runtime_error(format("{ .alpha=%s, .stencil=%s, .doublebuffer=%s, .multisample=%d, .forward_compatible=%s, .core_profile=%s, .gl_version=%s }",
                opts.alpha, opts.stencil, opts.doublebuffer, opts.multisample, opts.forward_compatible, opts.core_profile, format_version(opts)))