diff options
author | Sven Gothel <[email protected]> | 2008-08-14 18:58:57 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-08-14 18:58:57 +0000 |
commit | 4093a4980a5610f62edaec97328577decefb9ce0 (patch) | |
tree | a7135e87b2291028bf20bb0f288d4653ac904b96 /src/demos/es1/cubefbo | |
parent | 4a68a17a17c9fc498a57065846121e852bcf968f (diff) |
Fix Angeles blend and no-blend mode, ..
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@275 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es1/cubefbo')
-rwxr-xr-x | src/demos/es1/cubefbo/FBCubes.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/demos/es1/cubefbo/FBCubes.java b/src/demos/es1/cubefbo/FBCubes.java index ed19c0a..a97ee1c 100755 --- a/src/demos/es1/cubefbo/FBCubes.java +++ b/src/demos/es1/cubefbo/FBCubes.java @@ -59,6 +59,22 @@ class FBCubes implements GLEventListener { System.err.println("FBCubes Fixed emu: FIXED_EMULATION_VERTEXCOLORTEXTURE"); } + gl.glGetError(); // flush error .. + /* + if(gl.isGLES2()) { + GLES2 gles2 = gl.getGLES2(); + + // Debug .. + //DebugGLES2 gldbg = new DebugGLES2(gles2); + //gles2.getContext().setGL(gldbg); + //gles2 = gldbg; + + // Trace .. + //TraceGLES2 gltrace = new TraceGLES2(gles2, System.err); + gles2.getContext().setGL(gltrace); + gl = gltrace; + }*/ + fbo1.init(gl); //fbo1.init(gl, GL.GL_RGB, GL.GL_RGB, GL.GL_UNSIGNED_BYTE); // faster //fbo1.init(gl, GL.GL_RGBA, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE); // GLES2 default |