a bug with GX_SetTexCoordGen

Post Reply
beril
Posts: 3
Joined: Wed Feb 11, 2009 1:03 pm

a bug with GX_SetTexCoordGen

Post by beril » Wed Feb 11, 2009 1:33 pm

I was playing around with a blur effect by rendering a texture many times with a slight offset using different texture matrixes but I couldn't get the matrix to work for more than one texture channel. Eventually I looked in gx.c to see if the problem was in there, and I found something odd.

In GX_SetTexCoordGen2 in gx.c the matrix is set to different bits depending on the tgen_src, but it should be depending on the texcoord number instead, so you can use the same TG_TEX-sets with different matrices. I tried changing the switch statement and recompile the lib and everything works fine now.

maybe you can fix it to the next release of libogc?

shagkur
Posts: 53
Joined: Thu Sep 08, 2005 8:40 pm

Re: a bug with GX_SetTexCoordGen

Post by shagkur » Thu Feb 12, 2009 9:38 pm

Hi

this bug has been fixed a few weeks ago already. And while you're able to compile from sources you should grab the latest sources from SVN.
Yes, we switched to SVN now.

regards
shagkur

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests