summaryrefslogtreecommitdiffstats
path: root/src/graphics/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/opengl')
-rw-r--r--src/graphics/opengl/gldevice.cpp4
-rw-r--r--src/graphics/opengl/gldevice.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp
index 7bfd843..94b0dbc 100644
--- a/src/graphics/opengl/gldevice.cpp
+++ b/src/graphics/opengl/gldevice.cpp
@@ -48,6 +48,10 @@
// Graphics module namespace
namespace Gfx {
+GLDeviceConfig::GLDeviceConfig()
+{
+ LoadDefault();
+}
void GLDeviceConfig::LoadDefault()
{
diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h
index cda7b02..87c1247 100644
--- a/src/graphics/opengl/gldevice.h
+++ b/src/graphics/opengl/gldevice.h
@@ -52,7 +52,7 @@ struct GLDeviceConfig : public DeviceConfig
bool hardwareAccel;
//! Constructor calls LoadDefaults()
- GLDeviceConfig() { LoadDefault(); }
+ GLDeviceConfig();
//! Loads the default values
void LoadDefault();