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

This commit is contained in:
Cameron Gutman committed 2019-04-09 21:46:14 -07:00
1 parent 6783cf57da
commit 859a5a5e0c
17 files changed
+134 -79

No files matched your search

@@ -779,6 +779,12 @@ void DXVA2Renderer::notifyOverlayUpdated(Overlay::OverlayType type)
}
}
bool DXVA2Renderer::isRenderThreadSupported()
{
// renderFrame() may be called outside of the main thread
return true;
}
void DXVA2Renderer::renderFrame(AVFrame *frame)
{
IDirect3DSurface9* surface = reinterpret_cast<IDirect3DSurface9*>(frame->data[3]);