From e28ad1546509de31b706f0fd300a906e5bc55199 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Thu, 8 May 2025 21:03:43 +0200 Subject: new and changed mappers --- opengl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'opengl.c') diff --git a/opengl.c b/opengl.c index 255eac3..953a494 100644 --- a/opengl.c +++ b/opengl.c @@ -5,6 +5,7 @@ #include "vertex_shader.h" /* [=]===^=[ compile_shader ]==============================================================^===[=] */ +__attribute__((cold, noinline, section(".init_section"))) static GLuint compile_shader(GLenum shader_type, const char *shader_source) { GLuint shader = glCreateShader(shader_type); glShaderSource(shader, 1, &shader_source, 0); @@ -21,6 +22,7 @@ static GLuint compile_shader(GLenum shader_type, const char *shader_source) { } /* [=]===^=[ opengl_setup ]================================================================^===[=] */ +__attribute__((cold, noinline, section(".init_section"))) static void opengl_setup(void) { gl_loader(); -- cgit v1.2.3