[android-developers] Droid/Milestone: GL_OES_framebuffer_object reported but not working
Hi,
I'm trying to use the framebuffer object extension on Milestone with
2.0 firmware. The extension is reported by OpenGL but when you try to
use it then my app aborts. No message, no stacktrace, nothing.
Here is a simple code snippet for creating a framebuffer object:
int createFBO(GL11 gl) {
boolean hasFBO = isGLExtensionAvailable
("GL_OES_framebuffer_object"); // internal function for GL_EXTENSIONS
lookup
if (! hasFBO)
return 0;
if (! (gl instanceof GL11ExtensionPack))
return 0;
GL11ExtensionPack glext = (GL11ExtensionPack)gl;
int[] handles = new int[1];
glext.glGenFramebuffersOES(1, handles, 0); // aborts on Milestone
return handles[0];
}
Has anyone had any luck using FBO?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home