From e0890131294f8c04f33c8003814664a4eeb02b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 23 Jun 2017 15:37:15 -0700 Subject: [PATCH] Fixed texture format validation. --- src/bgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 8ac29f07a..1800c8f3c 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -3151,7 +3151,7 @@ error: } if (0 != (_flags & BGFX_TEXTURE_MSAA_SAMPLE) - && 0 == (g_caps.supported & BGFX_CAPS_FORMAT_TEXTURE_MSAA) ) + && 0 == (g_caps.formats[_format] & BGFX_CAPS_FORMAT_TEXTURE_MSAA) ) { _err->setError(BGFX_ERROR_TEXTURE_VALIDATION , "MSAA sampling for this texture format is not supported."