1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-11 23:54:09 +02:00

restore RT at end of frame

This commit is contained in:
XProger
2018-05-30 01:29:41 +03:00
parent 36e503613f
commit dfdd112ba8
2 changed files with 3 additions and 3 deletions

View File

@@ -948,6 +948,8 @@ namespace Core {
void endFrame() {
GAPI::endFrame();
GAPI::setTarget(NULL, 0);
validateRenderState();
Core::stats.stop();
}

View File

@@ -285,8 +285,6 @@ struct Level : IGame {
Core::reset();
Core::beginFrame();
inventory.prepareBackground();
Core::setTarget(NULL, 0);
Core::validateRenderState();
Core::endFrame();
}
}
@@ -2642,4 +2640,4 @@ struct Level : IGame {
};
#endif
#endif