kupo15
Member
There has to be some sort of surface bug, has anyone else been experiencing it? I just added my first surface to my game (to prove that I didn't mess up with another surface and that recent update interfering with this)
In Draw Begin
The result of this is that the surface is not drawn AND nothing after this is being drawn. If I were to stick the draw_surface BEFORE building it, it draws the surface but once again, nothing afterwards is drawn.
It seems as if surface_reset_target isn't resetting the target at all and things are still being drawn to the surface. Anyone have any idea what might be going on?
In Draw Begin
Code:
if !surface_exists(shadow_surface) // if surface is lost
{
show_debug_message("shadow surface lost: rebuilding");
ini_shadow_surface(); // this is simply shadow_surface = surface_create
}
surface_set_target(shadow_surface);
draw_clear_alpha(c_red,1);
surface_reset_target();
// draw the surface
var zoom_scale = cam_w/1920;
draw_surface_ext(shadow_surface,left_box,top_box,zoom_scale,zoom_scale,0,c_white,1);
It seems as if surface_reset_target isn't resetting the target at all and things are still being drawn to the surface. Anyone have any idea what might be going on?