[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bmg-commit]



Update of /d9/projects/walkthru/src/ndb
In directory glint:/var/tmp/luka/walkthru/src/ndb

Modified Files:
	texture.cpp 
Log Message:
continuing with texture debugging.

this fixes abuses of gl texture env mode, which (a) must be GL_MODULATE
for IBR alpha textures (eg, shrubs) to work correctly, and (b) was
trying to be cased off based on an inadequate heuristic (image depth
does *not* clearly define intended application mode in the least), and
(c) failed to do so anyway since GL_TEXTURE_ENV_MODE does not get saved
with named textures and would have to be saved and restored separately
anyway (so the mode of what ever was the last texture to be loaded is
what stuck globally).

fixed code uses GL_MODULATE unconditionally, but is open to further
extension for supporting overrides sanely if someone wants to spec
and code that for real.  (see comments in DB{Load,Bind}Texture.)