ANDROID: Attempt at working around some HTC fail

This commit is contained in:
dhewg 2011-04-02 13:30:38 +02:00
parent 23ad90b781
commit bceab2656b
3 changed files with 19 additions and 1 deletions

View file

@ -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() {