diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-05-08 21:03:43 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-05-08 21:03:43 +0200 |
| commit | e28ad1546509de31b706f0fd300a906e5bc55199 (patch) | |
| tree | 40d708336cf770b8c68302bd32b069951a3df428 /opengl.c | |
| parent | da9d961bbc3662064599f4b0b4759a2c641924a2 (diff) | |
new and changed mappers
Diffstat (limited to 'opengl.c')
| -rw-r--r-- | opengl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |
