From 033baf5710cc021acc93ff7dfce6eff6c2e26cd9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Mar 2012 21:47:15 +0300 Subject: Add FBO for screenshots to safe opengl also. --- src/opengl1graphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/opengl1graphics.h') diff --git a/src/opengl1graphics.h b/src/opengl1graphics.h index 6ed2d7440..5a2d6c254 100644 --- a/src/opengl1graphics.h +++ b/src/opengl1graphics.h @@ -129,6 +129,8 @@ class OpenGL1Graphics : public Graphics */ SDL_Surface *getScreenshot(); + void prepareScreenshot(); + static void bindTexture(GLenum target, GLuint texture); static GLuint mLastImage; @@ -140,6 +142,9 @@ class OpenGL1Graphics : public Graphics bool mAlpha, mTexture; bool mColorAlpha; bool mSync; + GLuint mFboId; + GLuint mTextureId; + GLuint mRboId; }; #endif -- cgit v1.2.3-60-g2f50