Turned off an assert that reads past the start of an array.

It'll crash here anyway if that assertion would have triggered, I think.
This commit is contained in:
Ryan C. Gordon 2016-04-06 23:19:40 -04:00
parent 553dbe2c62
commit 70f3f7fe35

View File

@ -133,8 +133,11 @@ void UploadTexture_OGL( ULONG *pulTexture, PIX pixSizeU, PIX pixSizeV,
PIX pixOffset=0;
while( pixSizeU>0 && pixSizeV>0)
{
#if 0 // trust me, you'll know if it's not readable. :) This assert will read one past the start of the array if U or V is zero, so turning it off. --ryan.
// check that memory is readable
ASSERT( pulTexture[pixOffset +pixSizeU*pixSizeV -1] != 0xDEADBEEF);
#endif
// upload mipmap as fast as possible
if( bUseSubImage) {
pglTexSubImage2D( GL_TEXTURE_2D, iMip, 0, 0, pixSizeU, pixSizeV,