Allow a renderer to opt-out of the render thread and use that for SDL on OGL

This commit is contained in:
Cameron Gutman
2019-04-09 21:46:14 -07:00
parent 6783cf57da
commit 859a5a5e0c
17 changed files with 134 additions and 79 deletions
+2 -8
View File
@@ -630,14 +630,8 @@ int FFmpegVideoDecoder::submitDecodeUnit(PDECODE_UNIT du)
return DR_OK;
}
// Called on main thread
void FFmpegVideoDecoder::renderFrame(SDL_UserEvent*)
void FFmpegVideoDecoder::renderFrameOnMainThread()
{
SDL_assert(false);
m_Pacer->renderOnMainThread();
}
// Called on main thread
void FFmpegVideoDecoder::dropFrame(SDL_UserEvent*)
{
SDL_assert(false);
}