From cfafd28a225eb9d53e00e5eec4418771e3606bb2 Mon Sep 17 00:00:00 2001 From: SimonDanisch Date: Fri, 5 Jan 2024 10:18:42 +0100 Subject: [PATCH] fix error printing on shader error --- GLMakie/src/GLAbstraction/GLShader.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLMakie/src/GLAbstraction/GLShader.jl b/GLMakie/src/GLAbstraction/GLShader.jl index 0313256dea7..8e8ab99061c 100644 --- a/GLMakie/src/GLAbstraction/GLShader.jl +++ b/GLMakie/src/GLAbstraction/GLShader.jl @@ -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)