aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/tizen
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-23 15:55:55 +0100
committerJohannes Schickel2016-03-23 15:55:55 +0100
commit114ef5817fe661275f7cb99d490b72f1d287b30e (patch)
treefe107ea3b10a8d38d1db01ebe1082c73616b96f0 /backends/platform/tizen
parent949af0fa7d5688c693b7a8201ac8b92aee95d274 (diff)
parent6b2424b6353ca5712afdf80e128a912a3cf78f0c (diff)
downloadscummvm-rg350-114ef5817fe661275f7cb99d490b72f1d287b30e.tar.gz
scummvm-rg350-114ef5817fe661275f7cb99d490b72f1d287b30e.tar.bz2
scummvm-rg350-114ef5817fe661275f7cb99d490b72f1d287b30e.zip
Merge pull request #711 from lordhoto/opengl-revamp
OpenGLGraphicsManager: Revamp
Diffstat (limited to 'backends/platform/tizen')
-rw-r--r--backends/platform/tizen/graphics.cpp5
-rw-r--r--backends/platform/tizen/graphics.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/tizen/graphics.cpp b/backends/platform/tizen/graphics.cpp
index 759c4e519d..61dbfc38fb 100644
--- a/backends/platform/tizen/graphics.cpp
+++ b/backends/platform/tizen/graphics.cpp
@@ -56,6 +56,7 @@ result TizenGraphicsManager::Construct() {
loadEgl();
// Notify the OpenGL code about our context.
+ setContextType(OpenGL::kContextGLES);
// We default to RGB565 and RGBA5551 which is closest to the actual output
// mode we setup.
@@ -206,3 +207,7 @@ bool TizenGraphicsManager::loadVideoMode(uint requestedWidth, uint requestedHeig
void TizenGraphicsManager::refreshScreen() {
eglSwapBuffers(_eglDisplay, _eglSurface);
}
+
+void *TizenGraphicsManager::getProcAddress(const char *name) const {
+ return eglGetProcAddress(name);
+}
diff --git a/backends/platform/tizen/graphics.h b/backends/platform/tizen/graphics.h
index 1522d66bbe..1798b078d8 100644
--- a/backends/platform/tizen/graphics.h
+++ b/backends/platform/tizen/graphics.h
@@ -63,6 +63,8 @@ protected:
void refreshScreen();
+ void *getProcAddress(const char *name) const;
+
const Graphics::Font *getFontOSD();
private: