Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualNik02

Posted 07 August 2013 - 04:12 AM

X3571 is a warning, not a fatal error. However, Game Maker seems to regard it as an error.

 

The warning text does suggest two workarounds - if you're sure that the power never should be negative, use the abs function to clamp the value to a positive range, or otherwise make sure that the shader logic never allows the pow function to be called with a negative power parameter. The shader compiler can deduce whether or not the parameter can ever be negative, based on the code that manipulates it.


#1Nik02

Posted 07 August 2013 - 04:10 AM

X3571 is a warning, not a fatal error. However, Game Maker regards it as an error.

 

The warning text does suggest two workarounds - if you're sure that the power never should be negative, use the abs function to clamp the value to a positive range, or otherwise make sure that the shader logic never allows the pow function to be called with a negative power parameter. The shader compiler can deduce whether or not the parameter can ever be negative, based on the code that manipulates it.


PARTNERS