summaryrefslogtreecommitdiff
path: root/opengl.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-08 21:03:43 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-08 21:03:43 +0200
commite28ad1546509de31b706f0fd300a906e5bc55199 (patch)
tree40d708336cf770b8c68302bd32b069951a3df428 /opengl.c
parentda9d961bbc3662064599f4b0b4759a2c641924a2 (diff)
new and changed mappers
Diffstat (limited to 'opengl.c')
-rw-r--r--opengl.c2
1 files changed, 2 insertions, 0 deletions
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();