Use SDL’s OpenGL headers

This commit is contained in:
Lior Halphon 2017-12-29 11:35:09 +02:00
parent b1edf540d8
commit 3d8e22ed50
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,6 @@
#include <string.h>
#include "shader.h"
#include "utils.h"
#include <OpenGL/gl3.h>
static const char *vertex_shader = "\n\
#version 150 \n\

View File

@ -1,6 +1,7 @@
#ifndef shader_h
#define shader_h
#include <OpenGL/gl3.h>
#define GL_GLEXT_PROTOTYPES
#include <SDL2/SDL_opengl.h>
#include <stdbool.h>
typedef struct shader_s {