Updated places to achFormatHint referencing array size.
This commit is contained in:
@@ -798,7 +798,7 @@ void ValidateDSProcess::Validate( const aiTexture* pTexture)
|
||||
if (!pTexture->mWidth) {
|
||||
ReportError("aiTexture::mWidth is zero (compressed texture)");
|
||||
}
|
||||
if ('\0' != pTexture->achFormatHint[3]) {
|
||||
if ('\0' != pTexture->achFormatHint[HINTMAXTEXTURELEN - 1]) {
|
||||
ReportWarning("aiTexture::achFormatHint must be zero-terminated");
|
||||
}
|
||||
else if ('.' == pTexture->achFormatHint[0]) {
|
||||
|
||||
Reference in New Issue
Block a user