aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/gfx.cpp
diff options
context:
space:
mode:
authordhewg2011-04-02 13:30:38 +0200
committerdhewg2011-04-02 13:32:03 +0200
commitbceab2656bdff4aa99f99b047f6bbd18ad5f86fc (patch)
treebef7559aa3ee1804d4ba2a37be9876ec0ecf39ad /backends/platform/android/gfx.cpp
parent23ad90b781c15249dc9214c552654589b51f5147 (diff)
downloadscummvm-rg350-bceab2656bdff4aa99f99b047f6bbd18ad5f86fc.tar.gz
scummvm-rg350-bceab2656bdff4aa99f99b047f6bbd18ad5f86fc.tar.bz2
scummvm-rg350-bceab2656bdff4aa99f99b047f6bbd18ad5f86fc.zip
ANDROID: Attempt at working around some HTC fail
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r--backends/platform/android/gfx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index bbd09ad20a..ab7240e648 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -523,6 +523,14 @@ void OSystem_Android::updateScreen() {
if (!JNI::swapBuffers())
LOGW("swapBuffers failed: 0x%x", glGetError());
+
+ // HTC's GLES drivers are made of fail
+ // http://code.google.com/p/android/issues/detail?id=3047
+ if (!_show_overlay && _htc_fail) {
+ const Common::Rect &rect = _game_texture->getDrawRect();
+
+ glScissor(rect.left, rect.top, rect.width(), rect.height());
+ }
}
Graphics::Surface *OSystem_Android::lockScreen() {