mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-12 16:14:25 +02:00
restore RT at end of frame
This commit is contained in:
@@ -948,6 +948,8 @@ namespace Core {
|
|||||||
|
|
||||||
void endFrame() {
|
void endFrame() {
|
||||||
GAPI::endFrame();
|
GAPI::endFrame();
|
||||||
|
GAPI::setTarget(NULL, 0);
|
||||||
|
validateRenderState();
|
||||||
Core::stats.stop();
|
Core::stats.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -285,8 +285,6 @@ struct Level : IGame {
|
|||||||
Core::reset();
|
Core::reset();
|
||||||
Core::beginFrame();
|
Core::beginFrame();
|
||||||
inventory.prepareBackground();
|
inventory.prepareBackground();
|
||||||
Core::setTarget(NULL, 0);
|
|
||||||
Core::validateRenderState();
|
|
||||||
Core::endFrame();
|
Core::endFrame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user