diff options
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(); |
