mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
internal/graphicscommand: add panic at convertUniforms
This commit is contained in:
parent
b52a02a178
commit
9f3f9e64cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user