From: James S. <arr...@gm...> - 2006-08-11 16:43:23
|
bizarre texture error with a even more bizarre fix? There is an odd bug when running Sauerbraten with Chromium. The textures on two opposite sides of a box will be rendered correctly, but these on the sides perpendicular to the correctly rendered sides will have their textures "skewed" (ig. the textures are severely warped, like the texture coordinates got corrupted). So, for example, on a map, the north and south sides of all objects might be rendered correctly, while the east and west sides would be skewed. I found a way to fix this... but I don't understand why it works at all: in any of the following functions: doFlush tilesortspuFlush tilesortspuFlush_callback crStateTexGendv crStateTexGenfv and maybe others. I add the lines crPackPushAttrib(0); crPackPopAttrib(); and the all sides of objects render properly? Does anyone have any idea why this might happen? As far as I can tell... crPackPushAttrib(0); crPackPopAttrib(); should do absolutely nothing? I have been working on this all night, and I am running out of ideas... Thank you for your time, James Steven Supancic III |