You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This warning displayed for surface_set_target() is misleading. It looks like a copy/paste from surface_reset_target(). I suggest "this function" to be replaced by "surface_reset_target()" in that specific page to avoid confusing people learning about surfaces.
"If you have not previously set a render target with the function [surface_set_target], using this function will silently (i.e. without any error messages) end all further code execution for the event."
I'm a little confused actually here because to me the surface_reset_target() warning is actually completely wrong. Attempting to reset the target without one set actually throws an error ("Unbalanced surface stack"), and does not silently end the event like it claims.
Description
This warning displayed for surface_set_target() is misleading. It looks like a copy/paste from surface_reset_target(). I suggest "this function" to be replaced by "surface_reset_target()" in that specific page to avoid confusing people learning about surfaces.
"If you have not previously set a render target with the function [surface_set_target], using this function will silently (i.e. without any error messages) end all further code execution for the event."
Manual Link
https://manual.gamemaker.io/monthly/en/index.htm#t=GameMaker_Language%2FGML_Reference%2FDrawing%2FSurfaces%2Fsurface_reset_target.htm%23h
The text was updated successfully, but these errors were encountered: