TextureFormat=None and setTextureFormat()

DrPain

26-01-2006 00:50:43

After updating to CVS today, my 2D server app started getting the exception:
"Cannot find a TextureMode supported by current hardware! (shaders/num texture units...)"
in PagingLandScapeTextureManager::getNextTextureFormat(), with "TextureFormat=None" set in my cfg file.

I notice that PagingLandScapeOptions::setTextureFormat() does not find the texture format "None" because the map TextureFormatSupported is empty.
I also notice that TextureFormatSupported is set via the NumTextureFormatSupported variable, which is not in my cfg file.
Is this a new feature? Or did something else change to break this?

tuan kuranes

26-01-2006 08:00:19

yes, this is a new feature and "NumTextureFormatSupported" and "TextureFormatSupported" are now mandatory in config files. I really helps at runtime texture mode selection, from what use might have generated from mapsplitter.