1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-04-20 02:51:50 +02:00

fix touch controls render

This commit is contained in:
XProger 2019-02-27 05:43:25 +03:00
parent ab1a57c994
commit 143f22dd86
2 changed files with 5 additions and 3 deletions

View File

@ -289,7 +289,11 @@ namespace Game {
void frameEnd() {
if (Core::settings.version == SETTINGS_READING) return;
UI::renderTouch();
if (level) {
level->setupBinding();
level->glyphs->bind(sDiffuse);
UI::renderTouch();
}
Core::endFrame();
}

View File

@ -563,8 +563,6 @@ namespace UI {
}
void renderTouch() {
game->setupBinding();
if (Input::touchTimerVis <= 0.0f) return;
Core::setDepthTest(false);