|
From: Frank C <li...@si...> - 2004-06-16 17:06:56
|
On 16-Jun-04, at 11:41 AM, Dair Grant wrote: > James W. Walker wrote: > >> If there was ever a swap back, I never saw it. > > Yes, it looks like that's been setting it to NULL (rather than setting > it back to what it was) forever. On a related note: Is there ever a good reason to bind a NULL texture? I've gained some speed by removing all NULL binds and wrapping glBindTexture in a GL_Util*** routine that compares the last texture to the requested one, avoiding redundant uploads. This helps the transparent pass quite a bit since it often binds/unbinds the same texture over and over (for every triangle) when drawing a mostly self-sorted mesh. Frank. |