mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-28 07:50:49 +00:00
OpenXR - Mismatched call order fixed
This commit is contained in:
parent
fb875b94de
commit
2195f4b2e7
@ -568,10 +568,13 @@ void GLRenderManager::Run(int frame) {
|
||||
auto &initStepsOnThread = frameData_[frame].initSteps;
|
||||
// queueRunner_.LogSteps(stepsOnThread);
|
||||
queueRunner_.RunInitSteps(initStepsOnThread, skipGLCalls_);
|
||||
initStepsOnThread.clear();
|
||||
|
||||
// Run this after RunInitSteps so any fresh GLRBuffers for the pushbuffers can get created.
|
||||
if (!skipGLCalls_) {
|
||||
for (auto iter : frameData.activePushBuffers) {
|
||||
iter->MapDevice(bufferStrategy_);
|
||||
iter->Flush();
|
||||
iter->UnmapDevice();
|
||||
}
|
||||
}
|
||||
|
||||
@ -592,18 +595,15 @@ void GLRenderManager::Run(int frame) {
|
||||
queueRunner_.RunSteps(stepsOnThread, skipGLCalls_);
|
||||
}
|
||||
|
||||
// Run this after RunInitSteps so any fresh GLRBuffers for the pushbuffers can get created.
|
||||
if (!skipGLCalls_) {
|
||||
for (auto iter : frameData.activePushBuffers) {
|
||||
iter->Flush();
|
||||
iter->UnmapDevice();
|
||||
iter->MapDevice(bufferStrategy_);
|
||||
}
|
||||
}
|
||||
|
||||
initStepsOnThread.clear();
|
||||
stepsOnThread.clear();
|
||||
|
||||
switch (frameData_[frame].type) {
|
||||
switch (frameData.type) {
|
||||
case GLRRunType::END:
|
||||
EndSubmitFrame(frame);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user