RequestSwap to force a swap from the GL thread.

This commit is contained in:
Ben Vanik
2015-02-21 11:18:22 -08:00
parent 9b21dd8874
commit 5227fe72b5
5 changed files with 60 additions and 34 deletions

View File

@@ -122,6 +122,10 @@ void GL4GraphicsSystem::EnableReadPointerWriteBack(uint32_t ptr,
command_processor_->EnableReadPointerWriteBack(ptr, block_size);
}
void GL4GraphicsSystem::RequestSwap() {
command_processor_->CallInThread([&]() { command_processor_->IssueSwap(); });
}
const uint8_t* GL4GraphicsSystem::PlayTrace(const uint8_t* trace_data,
size_t trace_size,
TracePlaybackMode playback_mode) {