Game Development Community

T3D Pro 1.1 - Exception on null pointer if graphics memory used up

by Keith G Wood · in Torque 3D Professional · 06/09/2013 (1:39 am) · 1 replies

Build: 1.1 Pro

Platform: Windows Vista/7/XP, 64 bit

Issues:
Exception on NULL pointer.

Steps to Repeat:
Exceed the graphics memory capacity of the graphics card. The next attempt to assign graphics memory fails, leaving a NULL pointer which is then used.


File: gfxD3D9TextureManager.cpp
Function: GFXD3D9TextureManager::_innerCreateTexture()

In the following line:

// All done!
retTex->mMipLevels = retTex->get2DTex()->GetLevelCount();

retTex->get2DTex() returns a NULL pointer which causes an exception when attempting ->GetLevelCount()

#1
06/09/2013 (9:27 am)
You do know Torque 3D MIT is out right? Also I shall have a look at the T3D MIT version and see if this is an issue...