Managed to get compiling under ubuntu

This commit is contained in:
Dominic
2021-08-14 13:38:57 -07:00
parent 2d977e041c
commit 5cf7da5ee0
7 changed files with 39 additions and 22 deletions

View File

@ -9,7 +9,7 @@
game_t *GAME_STATE;
int main(int argc, char *argv[]) {
int32_t main(int32_t argc, char *argv[]) {
game_t *game;
input_t *input;
SDL_GLContext context;
@ -57,11 +57,13 @@ int main(int argc, char *argv[]) {
return 1;
}
// Load glad
if (!gladLoadGLLoader((GLADloadproc) SDL_GL_GetProcAddress)) {
printf("Failed to initialize the OpenGL context.\n");
return 1;
}
#if SETTING_USE_GLAD == 1
// Load glad
if (!gladLoadGLLoader((GLADloadproc) SDL_GL_GetProcAddress)) {
printf("Failed to initialize the OpenGL context.\n");
return 1;
}
#endif
// Bind the GL Context
SDL_GL_MakeCurrent(displayWindow, context);