Bug 93625

Summary: [WebGL] GraphicsContext3D::deleteFramebuffer is not updating the m_bounds to default framebuffer
Product: WebKit Reporter: Alexandru Chiculita <achicu>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.opengl.org/sdk/docs/man3/xhtml/glDeleteFramebuffers.xml

Alexandru Chiculita
Reported 2012-08-09 10:11:00 PDT
According to the documentation of glDeleteFramebuffer, "if a framebuffer that is currently bound to one or more of the targets GL_DRAW_FRAMEBUFFER or GL_READ_FRAMEBUFFER is deleted, it is as though glBindFramebuffer had been executed with the corresponding target and framebuffer zero". Currently, the m_boundFBO is not reset to the default value, meaning that the next call to the bindFramebuffer will avoid to set the same framebuffer id. As soon as the old framebuffer is deleted, GL is allowed to reuse the same identifier for the newly created framebuffers.
Attachments
Alexandru Chiculita
Comment 1 2012-08-09 14:16:15 PDT
WebGL Rendering Context code already has this covered.
Note You need to log in before you can comment on or make changes to this bug.