Skip to content

Commit

Permalink
fix error printing on shader error
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jan 5, 2024
1 parent c65b987 commit cfafd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GLMakie/src/GLAbstraction/GLShader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function compile_shader(source::ShaderSource, template_src::String)
glShaderSource(shaderid, template_src)
glCompileShader(shaderid)
if !GLAbstraction.iscompiled(shaderid)
GLAbstraction.print_with_lines(String(source))
GLAbstraction.print_with_lines(template_src)
@warn("shader $(name) didn't compile. \n$(GLAbstraction.getinfolog(shaderid))")
end
return Shader(name, Vector{UInt8}(template_src), source.typ, shaderid)
Expand Down

0 comments on commit cfafd28

Please sign in to comment.