Menu

#10 ZeroGS OGL bug with AA 4x

open
nobody
None
5
2008-10-21
2008-10-21
Derfflinger
No

I trace problem with Linux build with switchen on AA (2x or 4x) and a CG Error invalid parameter issue.

And I found that souce is in ZeroGS::SetTexVariablesInt function, more precisely with (line 4866):

cgGLSetParameter4fv(pfragment->fRealTexDims, v);

Trouble that game first run pfragment->fRealTexDims is not set to anything, it is NULL. I check it.

I'v fixed this issue by following hack:

if (pfragment->fRealTexDims)

cgGLSetParameter4fv(pfragment->fRealTexDims, v);
else
cgGLSetParameter4fv(cgGetNamedParameter(pfragment->prog,"g_fRealTexDims"), v);

but I think it's inproper hack.

Discussion


Log in to post a comment.