SL-14705: Cleanup U32 S32 cast

meow-7.2.2
Ptolemy 2021-01-22 16:48:31 -08:00
parent 96a23e0b07
commit d0fcbd4427
1 changed files with 2 additions and 1 deletions

View File

@ -1476,6 +1476,7 @@ BOOL LLWindowWin32::switchContext(BOOL fullscreen, const LLCoordScreen &size, BO
S32 swap_method = 0;
S32 cur_format = 0;
const S32 max_format = (S32)num_formats - 1;
GLint swap_query = WGL_SWAP_METHOD_ARB;
// SL-14705 Fix name tags showing in front of objects with AMD GPUs.
@ -1488,7 +1489,7 @@ BOOL LLWindowWin32::switchContext(BOOL fullscreen, const LLCoordScreen &size, BO
{
break;
}
else if (cur_format >= (S32)(num_formats - 1))
else if (cur_format >= max_format)
{
cur_format = 0;
break;