This commit is contained in:
Rakarake 2026-03-12 12:26:32 +01:00
parent 666b6f6d56
commit d4a5fea127
3 changed files with 12 additions and 2 deletions

View file

@ -3,8 +3,10 @@
#include <string.h>
#include <GL/gl.h>
#include <stdlib.h>
#include <libpng16/png.h>
#include "renderer.h"
/// returns 0 if failed.
GLuint compile_shader(GLuint type, const char *src) {
GLuint id = glCreateShader(type);