Skip to content

Commit

Permalink
Fix naming collision
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 20, 2018
1 parent 786b000 commit 39f5d5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions driver/gl/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ func compileShader(source string, shaderType uint32) (uint32, error) {
var logLength int32
gl.GetShaderiv(shader, gl.INFO_LOG_LENGTH, &logLength)

log := strings.Repeat("\x00", int(logLength+1))
gl.GetShaderInfoLog(shader, logLength, nil, gl.Str(log))
info := strings.Repeat("\x00", int(logLength+1))
gl.GetShaderInfoLog(shader, logLength, nil, gl.Str(info))

return 0, fmt.Errorf("failed to compile %v: %v", source, log)
return 0, fmt.Errorf("failed to compile %v: %v", source, info)
}

return shader, nil
Expand Down

0 comments on commit 39f5d5b

Please sign in to comment.