• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code GM2 you can't draw a surface on top of itself?

R

RealityShifter

Guest
In game maker 1.4 I would change the colors of a sprite using a shader I'd cyle through each color I wanted to change by drawing the same surface over on to of itself with the shader applied for each color. I can't seem to do that in GM2 because when you draw a surface on to itself it looks screwy.

drawing a sprite to a surface then drawing the surface looks great.
taking that surface and drawing it onto itself....

Example:
surface_set_target(test_color_surf);
draw_surface(test_color_surf,0,0);
surface_reset_target();

Now the drawn surface will have a bunch of mini copies of the surface all over it.

I'll let yoyo know about the bug, but I think I'm going crazy. This is one surface bug of many im finding and I'm starting to think it's my project in general that's messed up. Can someone else duplicate this issue?
 

Mike

nobody important
GMC Elder
No you can't. This is a hardware restriction and will never happen due to the way GPUs and threaded up so much. You'll have to go via a 2nd surface.
 
R

RealityShifter

Guest
Yep that's the way to do it. Thanks. I've got it cycling between two surfaces.
 
Top