From facd5fbaa7724ecb56f30fbbefcab9a426d4966b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Aug 2012 23:11:07 +0300 Subject: Fix FBO under windows. --- src/normalopenglgraphics.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/normalopenglgraphics.cpp') 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); -- cgit v1.2.3-70-g09d2