Browse Source

Fixed texture format validation.

Branimir Karadžić 8 years ago
parent
commit
e089013129
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bgfx.cpp

+ 1 - 1
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."