X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fglcontext.h;fp=source%2Fgraphics%2Fglcontext.h;h=7f08f0e4026423e7d1b3b7c3dd657eae0ff781b1;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=986dd91e9642cb68832a3d5021d9b66cc9ff7d5a;hpb=2ed9d7a0a96638bdf0614c1cf858719e7ced40d3;p=libs%2Fgui.git diff --git a/source/graphics/glcontext.h b/source/graphics/glcontext.h index 986dd91..7f08f0e 100644 --- a/source/graphics/glcontext.h +++ b/source/graphics/glcontext.h @@ -17,16 +17,14 @@ struct GLOptions LATEST_VERSION = 0xFFFFFFFF }; - bool alpha; - bool stencil; - bool doublebuffer; - unsigned multisample; - bool forward_compatible; - bool core_profile; - unsigned gl_version_major; - unsigned gl_version_minor; - - GLOptions(); + bool alpha = false; + bool stencil = false; + bool doublebuffer = true; + unsigned multisample = 0; + bool forward_compatible = false; + bool core_profile = false; + unsigned gl_version_major = DEFAULT_VERSION; + unsigned gl_version_minor = DEFAULT_VERSION; }; @@ -47,7 +45,7 @@ private: Display &display; Window &window; - Private *priv; + Private *priv = 0; public: GLContext(Window &wnd, const GLOptions &opts = GLOptions());