Starfag
Member
Hi!
I'm using surfaces to copy the screen content before deactivating all other instances (like a pause screen). When the surface is drawn, it presents a weird contour around objects (see image). You can see that there is a gray contour around the door, the wardrobe, the mat and even the corner of the wall! The book itself does not have this contour, which implies that it happens on the surface copy/draw process. This problems occurs on Desktop, Android and HTML5 with WebGL enabled. If I disable WebGL, this does not happen. Also, I'm not using any shaders.
I'm creating the surface in the Draw Event
and copying/drawing it in the Draw End event.
Does anyone have a clue of why this happens? Thank you!
I'm using surfaces to copy the screen content before deactivating all other instances (like a pause screen). When the surface is drawn, it presents a weird contour around objects (see image). You can see that there is a gray contour around the door, the wardrobe, the mat and even the corner of the wall! The book itself does not have this contour, which implies that it happens on the surface copy/draw process. This problems occurs on Desktop, Android and HTML5 with WebGL enabled. If I disable WebGL, this does not happen. Also, I'm not using any shaders.
I'm creating the surface in the Draw Event
GML:
if(surface_exists(surf_bg)){
draw_surface_stretched(surf_bg, 0, 0, view_wport[0], view_hport[0]);
surf_mustRedraw = false;
}
else{
surf_bg = surface_create(surface_get_width(application_surface), surface_get_height(application_surface));
surf_mustRedraw = true;
instance_activate_all();
exit;
}
GML:
if(surf_mustRedraw){
if(surface_exists(surf_bg)){
surface_copy(surf_bg, 0, 0, application_surface);
draw_surface_stretched(surf_bg, 0, 0, view_wport[0], view_hport[0]);
deactivate_instances();
}
}