diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-22 11:35:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | 07390a4c8dcde85602c1a91d3773061d67d169ab (patch) | |
tree | 2128313bf3f5612d036cc35d71b2867b276b54e2 /src/normalopenglgraphics.cpp | |
parent | 89f6264172de327a53db26cdc15b475ca3c7e62e (diff) | |
download | mv-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.gz mv-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.bz2 mv-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.xz mv-07390a4c8dcde85602c1a91d3773061d67d169ab.zip |
add some more fixes for SDL2 compilation.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r-- | src/normalopenglgraphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp index bb4a03860..ac933a6ac 100644 --- a/src/normalopenglgraphics.cpp +++ b/src/normalopenglgraphics.cpp @@ -1034,7 +1034,11 @@ void NormalOpenGLGraphics::updateScreen() mLastBinds = mBinds; mBinds = 0; #endif +#ifdef USE_SDL2 + SDL_GL_SwapWindow(mWindow); +#else SDL_GL_SwapBuffers(); +#endif // may be need clear? // glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); BLOCK_END("Graphics::updateScreen") |