From fddb0af6f61d09a48af92c80148c5060e7c89da4 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 3 Dec 2019 16:48:48 +0100 Subject: [PATCH] app/internal/gpu: default to color material Before this change the default material were a texture, which leads to a crash when no texture is current. Signed-off-by: Elias Naur --- app/internal/gpu/gpu.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/internal/gpu/gpu.go b/app/internal/gpu/gpu.go index 40efb5ef..3e208a68 100644 --- a/app/internal/gpu/gpu.go +++ b/app/internal/gpu/gpu.go @@ -212,8 +212,8 @@ const ( ) const ( - materialTexture materialType = iota - materialColor + materialColor materialType = iota + materialTexture ) var (