summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r--src/safeopenglgraphics.cpp4
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);