Add guards to prevent fbo nesting

This commit is contained in:
vrld
2010-08-13 21:04:32 +02:00
parent 35093a5c45
commit ce0006d04c
3 changed files with 32 additions and 9 deletions
+5 -3
View File
@@ -24,21 +24,23 @@ namespace opengl
GLenum statusCode() const { return status_; } //SERIOUS DISLIKE HERE
const char* statusMessage() const;
void grab();
void stop();
bool grab();
bool stop();
virtual void draw(float x, float y, float angle, float sx, float sy, float ox, float oy) const;
private:
static bool isGrabbing;
GLsizei width;
GLsizei height;
GLuint fbo;
GLuint depthbuffer;
GLuint img;
GLenum status_;
vertex vertices[4];
GLenum status_;
static std::map<GLenum, const char*> status_to_string;
};