diff options
Diffstat (limited to 'drivers/gles3/storage/config.cpp')
-rw-r--r-- | drivers/gles3/storage/config.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/gles3/storage/config.cpp b/drivers/gles3/storage/config.cpp index 7b87ce7e4f..a83ad34d4c 100644 --- a/drivers/gles3/storage/config.cpp +++ b/drivers/gles3/storage/config.cpp @@ -39,18 +39,7 @@ Config *Config::singleton = nullptr; Config::Config() { singleton = this; - should_orphan = true; - // If this is to early we need to change our code similar to what we're doing in RendererRD, - // and instantiate our storage classes when we are ready to do so in the order we want. - initialize(); -} - -Config::~Config() { - singleton = nullptr; -} - -void Config::initialize() { { const GLubyte *extension_string = glGetString(GL_EXTENSIONS); @@ -157,4 +146,8 @@ void Config::initialize() { // should_orphan = GLOBAL_GET("rendering/options/api_usage_legacy/orphan_buffers"); } +Config::~Config() { + singleton = nullptr; +} + #endif // GLES3_ENABLED |