mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-12 08:04:09 +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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2642,4 +2640,4 @@ struct Level : IGame {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user