diff --git a/internal/graphicscommand/shader.go b/internal/graphicscommand/shader.go index 193f94d2b..3a1793458 100644 --- a/internal/graphicscommand/shader.go +++ b/internal/graphicscommand/shader.go @@ -184,6 +184,10 @@ func (s *Shader) Dispose() { } func (s *Shader) convertUniforms(uniforms map[string]interface{}) [][]float32 { + if s.shader == nil { + panic("graphicscommand: shader is not compiled yet") + } + type index struct { resultIndex int shaderUniformIndex int