mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-24 14:54:52 +01:00
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:
parent
553dbe2c62
commit
70f3f7fe35
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user