Dgl/gTexManager.cc
by Gregory "Centove" McLean · in Torque Game Engine · 04/14/2005 (7:16 am) · 2 replies
Looks like a small thinko here. (around line 121)
Specifically:
You'll never be able to set the Texture Compression to GL_NICEST as the newHint variable there goes out of scope on the next block and will be GL_DONT_CARE
Simple fix, loose the GLenum in that block and things should work as intended.
GLenum newHint = GL_DONT_CARE;
const char* newString = "GL_DONT_CARE";
if (dStricmp(argv[1], "GL_FASTEST") == 0) {
newHint = GL_FASTEST;
newString = "GL_FASTEST";
} else if (dStricmp(argv[1], "GL_NICEST") == 0) {
GLenum newHint = GL_NICEST;
newString = "GL_NICEST";
}
sgCompressionHint = newHint;Specifically:
} else if (dStricmp(argv[1], "GL_NICEST") == 0) {
GLenum newHint = GL_NICEST;
newString = "GL_NICEST";
}You'll never be able to set the Texture Compression to GL_NICEST as the newHint variable there goes out of scope on the next block and will be GL_DONT_CARE
Simple fix, loose the GLenum in that block and things should work as intended.
Associate Kyle Carter