Browse files

Small cleanup of ofFbo.cpp - closes #1278

  • Loading branch information...
1 parent 4b29510 commit 522a74993a264f8e42c54884dccd6901d36e0b34 @ofTheo ofTheo committed May 26, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 libs/openFrameworks/gl/ofFbo.cpp
View
9 libs/openFrameworks/gl/ofFbo.cpp
@@ -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
@@ -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);

0 comments on commit 522a749

Please sign in to comment.