CG error

I not understand.
Can you be much explicit, please?

Whatever version you are trying to run has in its ...racer\data\renderer\shaders\shadowmapping.cg shader program source file
a statement at line 87 that does not make sense to the shader program compiler. Namely; max(int,int), which should be comparing variables to variables, or variables to constants, but this seems to be comparing a type to a type. Nonsense. I can't tell you how that got there. I don't know if this source is pre-processed at some point. What version are you trying to run?

Our laptop graphics cards are both in class 3 with respect to suitability
http://www.notebookcheck.net/NVIDIA-GeForce-GT-520MX.54717.0.html
(mine's a Quadro NVS 160M way below the GT 520MX in the list)
Those files are created at the time of the build. If your cg files are not corrupt then maybe you have a driver issue. Maybe the runtime pre-processor is plugging those nonsense values in there due to an old or otherwise unsuitable driver.
 
Actually, the error means the compiler is seeing max(int a, int b) which isn't a valid set of variables for max().
You could I suppose get rid of it by writing the line int iSqrtSamples=max(float(iSqrtSamples-index),2.0f);

Not sure why other cards don't have the issue; maybe they do the conversion automatically.
 

Latest News

Do you prefer licensed hardware?

  • Yes for me it is vital

  • Yes, but only if it's a manufacturer I like

  • Yes, but only if the price is right

  • No, a generic wheel is fine

  • No, I would be ok with a replica


Results are only viewable after voting.
Back
Top