Permalink
Browse files

CloneWrapper: added ARB texture extension to shaders

  • Loading branch information...
1 parent bae6d6c commit 9f7a10ee6d2c4e0cfbdf43674845e181b254a0fd @arturoc committed Oct 17, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 CloningWrapper/src/Clone.cpp
@@ -1,6 +1,7 @@
#include "Clone.h"
char maskBlurShaderSource[] =
+"#extension GL_ARB_texture_rectangle : enable\n"
"uniform sampler2DRect tex, mask;\
uniform vec2 direction;\
uniform int k;\
@@ -26,6 +27,7 @@ void main() {\
}";
char cloneShaderSource[] =
+"#extension GL_ARB_texture_rectangle : enable\n"
"uniform sampler2DRect src, srcBlur, dstBlur;\
void main() {\
vec2 pos = gl_TexCoord[0].st; \
@@ -106,4 +108,4 @@ void Clone::update(ofTexture& src, ofTexture& dst, ofTexture& mask) {
void Clone::draw(float x, float y) {
buffer.draw(x, y);
-}
+}

0 comments on commit 9f7a10e

Please sign in to comment.