Managed to get compiling under ubuntu
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user