swr: [rasterizer common] fix assert index

Fixes: b3bd8bb611 ("swr: [rasterizer core] add support
       for "RAW" surface format")
CovID: 1373647
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
Eric Engestrom 2016-10-12 22:13:29 +01:00 committed by Tim Rowley
parent 5f885225cf
commit 827e038062
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ extern const SWR_FORMAT_INFO gFormatInfo[NUM_SWR_FORMATS];
/// @param format - SWR format
INLINE const SWR_FORMAT_INFO& GetFormatInfo(SWR_FORMAT format)
{
SWR_ASSERT(format <= NUM_SWR_FORMATS, "Invalid Surface Format: %d", format);
SWR_ASSERT(format < NUM_SWR_FORMATS, "Invalid Surface Format: %d", format);
SWR_ASSERT(gFormatInfo[format].name != nullptr, "Invalid Surface Format: %d", format);
return gFormatInfo[format];
}