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()
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()
About the author
The perverse mind behind Bad Taste Software: http://www.badtastesoftware.co.uk
Torque Owner Dwarf King
Noble Games Production