Managed to get compiling under ubuntu

This commit is contained in:
Dominic
2021-08-14 13:38:57 -07:00
parent 18152a0814
commit ca53b65b44
9 changed files with 42 additions and 24 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);