ANDROID: Attempt at working around some HTC fail
This commit is contained in:
parent
23ad90b781
commit
bceab2656b
3 changed files with 19 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue