From 70f3f7fe35d06331406b7f3fa189d6bb41a87b18 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 6 Apr 2016 23:19:40 -0400 Subject: [PATCH] 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. --- Sources/Engine/Graphics/Gfx_OpenGL_Textures.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Engine/Graphics/Gfx_OpenGL_Textures.cpp b/Sources/Engine/Graphics/Gfx_OpenGL_Textures.cpp index 4b92db6..8f357a2 100644 --- a/Sources/Engine/Graphics/Gfx_OpenGL_Textures.cpp +++ b/Sources/Engine/Graphics/Gfx_OpenGL_Textures.cpp @@ -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,