From cbdf4c768d18bde31103053b13f615e5424a0298 Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 16 May 2026 18:48:26 +0200 Subject: [PATCH] fix: const vertex_shader_text --- src/constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.h b/src/constants.h index 6b35cac..2aa99cb 100644 --- a/src/constants.h +++ b/src/constants.h @@ -3,7 +3,7 @@ #ifndef CONSTANTS_H #define CONSTANTS_H -static char *vertex_shader_text = +static const char *vertex_shader_text = "#version 460\n" "const mat4 mvp = " "{{2.,0.,0.,0.},{0.,2.,0.,0.},{0.,0.,2.,0.},{-1.,-1.,1.,1.}};\n" @@ -19,4 +19,4 @@ static const Vertex vertices[6] = {{{0.0f, 0.0f}}, {{0.0f, 1.0f}}, {{1.0f, 1.0f}}, {{0.0f, 0.0f}}, {{1.0f, 1.0f}}, {{1.0f, 0.0f}}}; -#endif /* CONSTANTS_H */ \ No newline at end of file +#endif /* CONSTANTS_H */