diff options
author | Johannes Schickel | 2013-10-19 19:40:10 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-10-19 22:18:22 +0200 |
commit | 37f71235529f8fd4a4c90389dc6a3b41e355f4a9 (patch) | |
tree | ff15cfeeeacf024d859cc9b45db8d46119dffded /backends/platform/tizen/graphics.cpp | |
parent | fa90f9797c7ffb6fdd416ac2ebdde3e6dab2fb52 (diff) | |
download | scummvm-rg350-37f71235529f8fd4a4c90389dc6a3b41e355f4a9.tar.gz scummvm-rg350-37f71235529f8fd4a4c90389dc6a3b41e355f4a9.tar.bz2 scummvm-rg350-37f71235529f8fd4a4c90389dc6a3b41e355f4a9.zip |
TIZEN: Add some further OpenGL related changes by Chris.
Diffstat (limited to 'backends/platform/tizen/graphics.cpp')
-rw-r--r-- | backends/platform/tizen/graphics.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/backends/platform/tizen/graphics.cpp b/backends/platform/tizen/graphics.cpp index 6af0c2b37e..390796dc0e 100644 --- a/backends/platform/tizen/graphics.cpp +++ b/backends/platform/tizen/graphics.cpp @@ -37,6 +37,20 @@ TizenGraphicsManager::TizenGraphicsManager(TizenAppForm *appForm) : _eglContext(EGL_NO_CONTEXT), _initState(true) { assert(appForm != NULL); +} + +TizenGraphicsManager::~TizenGraphicsManager() { + logEntered(); + + if (_eglDisplay != EGL_NO_DISPLAY) { + eglMakeCurrent(_eglDisplay, NULL, NULL, NULL); + if (_eglContext != EGL_NO_CONTEXT) { + eglDestroyContext(_eglDisplay, _eglContext); + } + } +} + +result TizenGraphicsManager::Construct() { // Initialize our OpenGL ES context. loadEgl(); @@ -51,17 +65,7 @@ TizenGraphicsManager::TizenGraphicsManager(TizenAppForm *appForm) : _appForm->GetBounds(x, y, width, height); AppLog("screen size: %dx%d", width, height); setActualScreenSize(width, height); -} - -TizenGraphicsManager::~TizenGraphicsManager() { - logEntered(); - - if (_eglDisplay != EGL_NO_DISPLAY) { - eglMakeCurrent(_eglDisplay, NULL, NULL, NULL); - if (_eglContext != EGL_NO_CONTEXT) { - eglDestroyContext(_eglDisplay, _eglContext); - } - } + return E_SUCCESS; } const Graphics::Font *TizenGraphicsManager::getFontOSD() { @@ -189,9 +193,6 @@ bool TizenGraphicsManager::loadEgl() { systemError("eglMakeCurrent() failed"); return false; } - if (!_initState) { - _appForm->GetVisualElement()->SetShowState(true); - } logLeaving(); return true; } |