internal/graphicscommand: add panic at convertUniforms

This commit is contained in:
Hajime Hoshi 2022-04-03 00:39:05 +09:00
parent b52a02a178
commit 9f3f9e64cc

View File

@ -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