Browse Source

use sdl init flags in the correct call

remotes/bxxa/master
cinnaboot 4 years ago
parent
commit
cecb7ebfab
  1. 2
      include/tangerine.h
  2. 4
      src/tangerine.cpp

2
include/tangerine.h

@ -193,7 +193,7 @@ struct RenderState
#define DEFAULT_WIDTH 1280 #define DEFAULT_WIDTH 1280
#define DEFAULT_HEIGHT 720 #define DEFAULT_HEIGHT 720
#define DEFAULT_SDL_FLAGS SDL_WINDOW_OPENGL|SDL_WINDOW_RESIZABLE #define DEFAULT_SDL_FLAGS SDL_INIT_VIDEO
#define DEFAULT_MODEL_COUNT 256 #define DEFAULT_MODEL_COUNT 256
#define DEFAULT_TEXTURE_COUNT 64 #define DEFAULT_TEXTURE_COUNT 64
#define DEFAULT_SHADER_COUNT 64 #define DEFAULT_SHADER_COUNT 64

4
src/tangerine.cpp

@ -278,9 +278,9 @@ initGraphics(SDLHandles* handles, const char* title, uvec2 dims)
SDL_WINDOWPOS_CENTERED_DISPLAY(0), SDL_WINDOWPOS_CENTERED_DISPLAY(0),
dims.x, dims.x,
dims.y, dims.y,
handles->SDL_flags); SDL_WINDOW_OPENGL|SDL_WINDOW_RESIZABLE);
if (SDL_Init(SDL_INIT_VIDEO) != 0) { if (SDL_Init(handles->SDL_flags) != 0) {
std::cout << "error, sdl init: " << SDL_GetError() << "\n"; std::cout << "error, sdl init: " << SDL_GetError() << "\n";
return false; return false;
} }

Loading…
Cancel
Save