diff options
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r-- | backends/graphics/opengl/context.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/graphics/opengl/context.cpp b/backends/graphics/opengl/context.cpp index 0944e05f7c..764cabcbde 100644 --- a/backends/graphics/opengl/context.cpp +++ b/backends/graphics/opengl/context.cpp @@ -28,13 +28,13 @@ namespace OpenGL { void Context::reset(bool full) { - if (full) { - // GLES supports least features, thus we initialize the context type - // to this on full reset. - type = kContextGLES; - } + // GLES supports least features, thus we initialize the context type + // to this on full reset. + const ContextType savedType = full ? kContextGLES : type; + + memset(this, 0, sizeof(Context)); - NPOTSupported = false; + type = savedType; } Context g_context; |