diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-11 23:11:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-12 01:13:04 +0300 |
commit | facd5fbaa7724ecb56f30fbbefcab9a426d4966b (patch) | |
tree | 32896d0d1276417a97f506f3eac856d10e17b186 /src/safeopenglgraphics.cpp | |
parent | 8127238e3e06ff9d7952dde9f931c41c0947ba9c (diff) | |
download | manaverse-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.gz manaverse-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.bz2 manaverse-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.xz manaverse-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.zip |
Fix FBO under windows.
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r-- | src/safeopenglgraphics.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/safeopenglgraphics.cpp b/src/safeopenglgraphics.cpp index adc49795c..1cc9bc3d8 100644 --- a/src/safeopenglgraphics.cpp +++ b/src/safeopenglgraphics.cpp @@ -425,10 +425,8 @@ void SafeOpenGLGraphics::_endDraw() void SafeOpenGLGraphics::prepareScreenshot() { -#if !defined(_WIN32) if (config.getBoolValue("usefbo")) graphicsManager.createFBO(mTarget->w, mTarget->h, &mFbo); -#endif } SDL_Surface* SafeOpenGLGraphics::getScreenshot() @@ -471,10 +469,8 @@ SDL_Surface* SafeOpenGLGraphics::getScreenshot() free(buf); -#if !defined(_WIN32) if (config.getBoolValue("usefbo")) graphicsManager.deleteFBO(&mFbo); -#endif glPixelStorei(GL_PACK_ALIGNMENT, pack); |