summaryrefslogtreecommitdiff
path: root/objs/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'objs/root.go')
-rw-r--r--objs/root.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/objs/root.go b/objs/root.go
index 44309ac..92f3804 100644
--- a/objs/root.go
+++ b/objs/root.go
@@ -11,8 +11,8 @@ type Root struct {
}
func (root *Root) Render(r *sdl.Renderer) {
- r.SetDrawColor(0, 0, 0, 255)
- r.Clear()
+ root.Safe(r.SetDrawColor(0, 0, 0, 255))
+ root.Safe(r.Clear())
}
func NewRoot(window *sdl.Window, children ...ecs.IsGameObject) ecs.IsGameObject {