mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +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 {
|
func (s *Shader) convertUniforms(uniforms map[string]interface{}) [][]float32 {
|
||||||
|
if s.shader == nil {
|
||||||
|
panic("graphicscommand: shader is not compiled yet")
|
||||||
|
}
|
||||||
|
|
||||||
type index struct {
|
type index struct {
|
||||||
resultIndex int
|
resultIndex int
|
||||||
shaderUniformIndex int
|
shaderUniformIndex int
|
||||||
|
Loading…
Reference in New Issue
Block a user