Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#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