~sircmpwn/gdwlroots

8d698cfae0a1e439494e54441cfb22b6b48fbfcc — Drew DeVault 5 months ago 07803ca master
Remove debug drawing
1 files changed, 1 insertions(+), 2 deletions(-)

M threeston/prefabs/surface/Surface_Node2D.gd
M threeston/prefabs/surface/Surface_Node2D.gd => threeston/prefabs/surface/Surface_Node2D.gd +1 -2
@@ 35,11 35,10 @@ func _draw_surface(surface, sx, sy):
	if texture == null:
		return
	var state = xdg_surface.get_wlr_surface().get_current_state()
	draw_rect(Rect2(0, 0, get_viewport().size.x, get_viewport().size.y), Color.red)
	draw_texture(texture, Vector2(0, 0))
	surface.send_frame_done()

func _draw():
	if xdg_surface != null:
		var fn = funcref(self, "_draw_surface")
		xdg_surface.for_each_surface(fn)
\ No newline at end of file
		xdg_surface.for_each_surface(fn)