diff options
| author | Bryan Hoyle <starfoxprime@gmail.com> | 2012-08-12 18:29:27 (GMT) |
|---|---|---|
| committer | Bryan Hoyle <starfoxprime@gmail.com> | 2012-08-12 18:29:27 (GMT) |
| commit | 530e093d8b25f8ac9be48507319f1353f4695679 (patch) | |
| tree | f7f7541020c9fec0955e026e39bff0e7e93714af /src/PowderToySDL.cpp | |
| parent | 859aa0cf14d96acfde8ebe9b5d5c452ec6d3793b (diff) | |
| download | powder-530e093d8b25f8ac9be48507319f1353f4695679.zip powder-530e093d8b25f8ac9be48507319f1353f4695679.tar.gz | |
now opengl and opengl renderer run and compile, but renderer has a segfault, will fix
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 48c6292..1085561 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -199,14 +199,6 @@ int SDLOpen() //SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); atexit(SDL_Quit); -#if defined(OGLI) - int status = glewInit(); - if(status != GLEW_OK) - { - fprintf(stderr, "Initializing Glew: %d\n", status); - exit(-1); - } -#endif return 0; } @@ -352,6 +344,14 @@ int main(int argc, char * argv[]) SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1); //glScaled(2.0f, 2.0f, 1.0f); #endif +#if defined(OGLI) + int status = glewInit(); + if(status != GLEW_OK) + { + fprintf(stderr, "Initializing Glew: %d\n", status); + exit(-1); + } +#endif ui::Engine::Ref().g = new Graphics(); ui::Engine::Ref().Scale = scale; inputScale = 1.0f/float(scale); |
