]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/device_backend.cpp
Create default context options in the device backend
[libs/gl.git] / source / backends / opengl / device_backend.cpp
index 1c51b132ca48500a26f5b78841bbb2e99c855cd3..35c0ca5c244d71573979171a1d2de85b2ccad55d 100644 (file)
@@ -25,6 +25,14 @@ OpenGLDevice::OpenGLDevice(Graphics::Window &wnd, const Graphics::GLOptions &opt
        context(wnd, opts)
 { }
 
+Graphics::GLOptions OpenGLDevice::create_default_options()
+{
+       Graphics::GLOptions opts;
+       opts.gl_version_major = Graphics::GLOptions::LATEST_VERSION;
+       opts.core_profile = true;
+       return opts;
+}
+
 void OpenGLDevice::fill_info()
 {
        DeviceInfo &info = static_cast<Device *>(this)->info;