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:
@@ -948,6 +948,8 @@ namespace Core {
|
||||
|
||||
void endFrame() {
|
||||
GAPI::endFrame();
|
||||
GAPI::setTarget(NULL, 0);
|
||||
validateRenderState();
|
||||
Core::stats.stop();
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user