Hey there.
I'm coding a pause system and for that I need to save the application_surface (at the moment it is paused) to another surface.
When I do that though, particles drawn on the application surface cause holes in my surface.
Example
Normal game (you can see the smoke particles):
Paused game (you can see the hole in the surface):
Code
Here's the code that saves the application surface to my own:
Drawing the surface onto it instead of using surface_copy() has the same effect.
Also, ignore the blur shader, the bug exists even when the surface is directly drawn without any shaders.
Any ideas?
Thanks!
I'm coding a pause system and for that I need to save the application_surface (at the moment it is paused) to another surface.
When I do that though, particles drawn on the application surface cause holes in my surface.
Example
Normal game (you can see the smoke particles):
Paused game (you can see the hole in the surface):
Code
Here's the code that saves the application surface to my own:
Code:
//Surface
pauseSurf = surface_create(surface_get_width(application_surface), surface_get_height(application_surface));
surface_copy(pauseSurf, 0, 0, application_surface);
Also, ignore the blur shader, the bug exists even when the surface is directly drawn without any shaders.
Any ideas?
Thanks!