summaryrefslogtreecommitdiffstats
path: root/src/demos/cubefbo
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-05 01:55:54 +0200
committerSven Gothel <[email protected]>2011-04-05 01:55:54 +0200
commita7317cf820a33cac7f068153649031483df53cac (patch)
tree7f6125bd502f25d3faf50b15638e20b809042fea /src/demos/cubefbo
parent05e3d96ff9586b2f6cd5c2841337f9be7d07c313 (diff)
Adapt to FBObject jogl changes b44288b26e8ac6de0593db349725c2a288bb520a
Diffstat (limited to 'src/demos/cubefbo')
-rwxr-xr-xsrc/demos/cubefbo/FBCubes.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/demos/cubefbo/FBCubes.java b/src/demos/cubefbo/FBCubes.java
index 14aca21..76beb3c 100755
--- a/src/demos/cubefbo/FBCubes.java
+++ b/src/demos/cubefbo/FBCubes.java
@@ -55,16 +55,18 @@ class FBCubes implements GLEventListener, MouseListener, MouseMotionListener {
cubeInner = new CubeObject(false);
cubeMiddle = new CubeObject(true);
cubeOuter = new CubeObject(true);
- fbo1 = new FBObject(FBO_SIZE, FBO_SIZE, 0);
- fbo2 = new FBObject(FBO_SIZE, FBO_SIZE, 0);
+ fbo1 = new FBObject(FBO_SIZE, FBO_SIZE);
+ fbo2 = new FBObject(FBO_SIZE, FBO_SIZE);
}
public void init(GLAutoDrawable drawable) {
GL2 gl = drawable.getGL().getGL2();
// drawable.setGL(new DebugGL2(gl));
// gl = drawable.getGL().getGL2();
- fbo1.init(gl);
- fbo2.init(gl);
+ fbo1.init(gl, gl.GL_NEAREST, gl.GL_NEAREST, 0, 0);
+ fbo1.unbind(gl);
+ fbo2.init(gl, gl.GL_NEAREST, gl.GL_NEAREST, 0, 0);
+ fbo2.unbind(gl);
}
int x, y, width, height;