Khronos.org Message Boards

Public discussions about the Khronos Dynamic Media APIs
It is currently Thu Sep 02, 2010 7:34 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Firefox: bindFramebuffer?
PostPosted: Mon Nov 23, 2009 11:19 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 9:42 am
Posts: 75
Location: NRW, Germany
Does anyone have tried to use FramebufferObjects on Firefox yet?

When calling
Code:
gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);

current Firefox Nightly just says
Code:
glBindFramebuffer: invalid target

gl.FRAMEBUFFER has the correct value 0x8d40 (= 36160), so why do I get this error? :?

Any ideas?


Top
 Profile E-mail  
 
 Post subject: Re: Firefox: bindFramebuffer?
PostPosted: Mon Nov 23, 2009 11:32 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 9:42 am
Posts: 75
Location: NRW, Germany
The implementation looks a bit strange? What has target to do with LOCAL_GL_*_ATTACHMENT* ? According to spec the only valid value is FRAMEBUFFER. :shock:

Code:
398 NS_IMETHODIMP
399 WebGLContext::BindFramebuffer(GLenum target, nsIWebGLFramebuffer *fb)
400 {
401     WebGLFramebuffer *wfb = static_cast<WebGLFramebuffer*>(fb);
402
403     if (wfb && wfb->Deleted())
404         return ErrorMessage("glBindFramebuffer: framebuffer has already been deleted!");
405
406     MakeContextCurrent();
407
408     if (target >= LOCAL_GL_COLOR_ATTACHMENT0 &&
409         target < (LOCAL_GL_COLOR_ATTACHMENT0 + mBoundColorFramebuffers.Length()))
410     {
411         int targetOffset = target - LOCAL_GL_COLOR_ATTACHMENT0;
412         mBoundColorFramebuffers[targetOffset] = wfb;
413     } else if (target == LOCAL_GL_DEPTH_ATTACHMENT) {
414         mBoundDepthFramebuffer = wfb;
415     } else if (target == LOCAL_GL_STENCIL_ATTACHMENT) {
416         mBoundStencilFramebuffer = wfb;
417     } else {
418         return ErrorMessage("glBindFramebuffer: invalid target");
419     }
420
421     gl->fBindFramebuffer(target, wfb ? wfb->GLName() : 0);
422
423     return NS_OK;
424 }


Top
 Profile E-mail  
 
 Post subject: Re: Firefox: bindFramebuffer?
PostPosted: Tue Nov 24, 2009 3:25 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 9:42 am
Posts: 75
Location: NRW, Germany
It's a known bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=528013


Top
 Profile E-mail  
 
 Post subject: Re: Firefox: bindFramebuffer?
PostPosted: Wed Dec 23, 2009 4:07 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 9:42 am
Posts: 75
Location: NRW, Germany
Seems like FBOs are working on Firefox now.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group