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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-12-03 16:48:48 +01:00
parent 96a4e510f9
commit fddb0af6f6
+2 -2
View File
@@ -212,8 +212,8 @@ const (
)
const (
materialTexture materialType = iota
materialColor
materialColor materialType = iota
materialTexture
)
var (