From 0f8c6aed5c47336f98071b57869c09f7673926b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 15 Jun 2020 10:30:51 -0700 Subject: [PATCH] Fixed max encoders in single-threaded mode bug. --- src/bgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 00ee672bf..b63c738d0 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -3438,7 +3438,7 @@ namespace bgfx g_caps.limits.maxUniforms = BGFX_CONFIG_MAX_UNIFORMS; g_caps.limits.maxOcclusionQueries = BGFX_CONFIG_MAX_OCCLUSION_QUERIES; g_caps.limits.maxFBAttachments = 1; - g_caps.limits.maxEncoders = (0 != BGFX_CONFIG_MULTITHREADED) ? init.limits.maxEncoders : 0; + g_caps.limits.maxEncoders = (0 != BGFX_CONFIG_MULTITHREADED) ? init.limits.maxEncoders : 1; g_caps.limits.minResourceCbSize = init.limits.minResourceCbSize; g_caps.limits.transientVbSize = init.limits.transientVbSize; g_caps.limits.transientIbSize = init.limits.transientIbSize;