From 7b7791156c205656d8db13cdc3612716411b1b49 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 31 Oct 2021 01:37:25 +0900 Subject: [PATCH] internal/graphicsdriver/opengl: Remove unreached return --- internal/graphicsdriver/opengl/program.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/graphicsdriver/opengl/program.go b/internal/graphicsdriver/opengl/program.go index 4b00f53f7..0dd7e1b35 100644 --- a/internal/graphicsdriver/opengl/program.go +++ b/internal/graphicsdriver/opengl/program.go @@ -293,7 +293,6 @@ func (g *Graphics) useProgram(program program, uniforms []uniformVariable, textu // the value u would be allocated on heap. 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 nil } cached, ok := g.state.lastUniforms[u.name]