#382 min() not working properly with varying

unsupported
closed
5
2012-09-20
2009-09-07
No

It appears the min() function will only evaluate the first two parameters when using varying variables but works fine with uniform variables. Attached is a simple demonstration, uncomment the lines in the shader to see both working and broken types.

Discussion

  • Anonymous - 2009-09-07
     
  • Chris Foster

    Chris Foster - 2009-09-07

    This should be fixed in revision 1750d2ea075838335e956ee2f4caf73621a3f733.

    This bug was due to using the extra argument count cParams being as a loop counter inside the varying loop, which only worked correctly for the first varying element or if the variables were uniform. The bug was present in all of the min and max functions for floats as well as colours and points; the patch rectifies the problem in all locations.

     
  • Anonymous - 2009-09-07

    Holy Hanna that was fast!!
    Works great thanks :D

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks