]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/device.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / device.cpp
index 9a24a1f2c905ef1dc025f28b45227794305985de..3186015c73ebb9c887119ffdd618a2339804fe09 100644 (file)
@@ -6,10 +6,17 @@ namespace GL {
 
 Device *Device::current = 0;
 
+Device::Device(Graphics::Window &w):
+       Device(w, create_default_options())
+{ }
+
 Device::Device(Graphics::Window &w, const DeviceOptions &o):
        DeviceBackend(w, o)
 {
        current = this;
+
+       info.api = get_backend_api();
+       fill_info();
 }
 
 Device::~Device()