Fixed texture format validation.

This commit is contained in:
Branimir Karadžić 2017-06-23 15:37:15 -07:00
parent c55fbf378b
commit e089013129
1 changed files with 1 additions and 1 deletions

View File

@ -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."