summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-11 23:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-12 01:13:04 +0300
commitfacd5fbaa7724ecb56f30fbbefcab9a426d4966b (patch)
tree32896d0d1276417a97f506f3eac856d10e17b186 /src/normalopenglgraphics.cpp
parent8127238e3e06ff9d7952dde9f931c41c0947ba9c (diff)
downloadmanaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.gz
manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.bz2
manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.xz
manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.zip
Fix FBO under windows.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r--src/normalopenglgraphics.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp
index ae28e2030..75eafc732 100644
--- a/src/normalopenglgraphics.cpp
+++ b/src/normalopenglgraphics.cpp
@@ -1003,10 +1003,8 @@ void NormalOpenGLGraphics::_endDraw()
void NormalOpenGLGraphics::prepareScreenshot()
{
-#if !defined(_WIN32)
if (config.getBoolValue("usefbo"))
graphicsManager.createFBO(mTarget->w, mTarget->h, &mFbo);
-#endif
}
SDL_Surface* NormalOpenGLGraphics::getScreenshot()
@@ -1049,10 +1047,8 @@ SDL_Surface* NormalOpenGLGraphics::getScreenshot()
free(buf);
-#if !defined(_WIN32)
if (config.getBoolValue("usefbo"))
graphicsManager.deleteFBO(&mFbo);
-#endif
glPixelStorei(GL_PACK_ALIGNMENT, pack);