Menu ▾ ▴

#1 Wrong code

open
nobody
None
5
2005-08-21
2005-08-21
Anonymous
No

SoMode4PolygonRasterizer.c: lines 166, 167

Function: SoMode4PolygonRasterizerSetTexture

textureWidth is used to calculate shifts twice, obviously the second
one in the loop test should be textureHeight:

s_TextureUShift = 0; while ( textureWidth >>= 1 ) +
+s_TextureUShift; --s_TextureUShift;
s_TextureVShift = 0; while ( textureWidth >>= 1 ) +
+s_TextureVShift; --s_TextureVShift;

Discussion


Log in to post a comment.