internal/graphicsdriver/opengl: Remove unreached return

This commit is contained in:
Hajime Hoshi 2021-10-31 01:37:25 +09:00
parent 98083ccd0a
commit 7b7791156c

View File

@ -293,7 +293,6 @@ func (g *Graphics) useProgram(program program, uniforms []uniformVariable, textu
// the value u would be allocated on heap. // the value u would be allocated on heap.
typ := u.typ typ := u.typ
return fmt.Errorf("opengl: length of a uniform variables %s (%s) doesn't match: expected %d but %d", u.name, typ.String(), expected, got) return fmt.Errorf("opengl: length of a uniform variables %s (%s) doesn't match: expected %d but %d", u.name, typ.String(), expected, got)
return nil
} }
cached, ok := g.state.lastUniforms[u.name] cached, ok := g.state.lastUniforms[u.name]