graphics: fix initialization

This commit is contained in:
nmzik committed 2026-07-21 07:37:52 +02:00
1 parent 0a5f78c727
commit 8a4600c5e9
16 files changed
+39 -170

No files matched your search

-2
View File
@@ -1104,8 +1104,6 @@ static int RegisterBuffersInternal(VideoOutConfig& ctx, int set_id, int start_in
if (set_id < 0 || set_id >= VIDEO_OUT_BUFFER_ATTRIBUTE_NUM_MAX) {
EXIT("internal video-out buffer set identifier is out of range\n");
}
Graphics::WindowWaitForGraphicInitialized();
Graphics::GraphicsRenderCreateContext();
Common::LockGuard lock(ctx.mutex);
if (ctx.closing) {
EXIT("cannot register buffers on a closing video-out handle\n");