Skip to content

Commit

Permalink
Small cleanup of ofFbo.cpp - closes #1278
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo committed May 26, 2012
1 parent 4b29510 commit 522a749
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libs/openFrameworks/gl/ofFbo.cpp
Expand Up @@ -25,8 +25,11 @@
#ifndef TARGET_OPENGLES
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT
#define GL_UNSIGNED_INT_24_8 GL_UNSIGNED_INT_24_8_EXT


#ifndef GL_UNSIGNED_INT_24_8
#define GL_UNSIGNED_INT_24_8 GL_UNSIGNED_INT_24_8_EXT
#endif

/*#define glGenFramebuffers glGenFramebuffersEXT
#define glGenRenderbuffers glGenRenderbuffersEXT
#define glDeleteFramebuffers glDeleteFramebuffersEXT
Expand Down Expand Up @@ -393,7 +396,7 @@ void ofFbo::allocate(int width, int height, int internalformat, int numSamples)
settings.useStencil = true;

//we do this as the fbo and the settings object it contains could be created before the user had the chance to disable or enable arb rect.
textureTarget = ofGetUsingArbTex() ? GL_TEXTURE_RECTANGLE_ARB : GL_TEXTURE_2D;
settings.textureTarget = ofGetUsingArbTex() ? GL_TEXTURE_RECTANGLE_ARB : GL_TEXTURE_2D;
#endif

allocate(settings);
Expand Down

0 comments on commit 522a749

Please sign in to comment.