[ pyopengl-Bugs-2727274 ] glDeleteFramebuffersEXT Bug

"SourceForge.net" <[email protected]> Thu, 02 Apr 2009 20:48:35 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #2727274, was opened at 2009-04-02 21:46
Message generated for change (Comment added) made by flagunas
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2727274&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Francois Lagunas (flagunas)
Assigned to: Nobody/Anonymous (nobody)
Summary: glDeleteFramebuffersEXT Bug

Initial Comment:
The glDeleteFramebuffersEXT does not seem to work. The bug lead to an opengl "out of memory" error when allocating and disallocating a large number of fbos (~ 200 ).
In the attachement, a C++ version is included for comparison : the fbo id is recycled and then reused after glDeleteFramebuffersEXT is called, but not in the python version.
This is true for at least the 3.0.0 version .


----------------------------------------------------------------------

>Comment By: Francois Lagunas (flagunas)
Date: 2009-04-02 22:48

Message:
My bad but ... 
You have to call the glDeleteFramebuffersEXT this way :

fbo_id0, fbo_id1 = EXT.glGenFramebuffersEXT(1)

glDeleteRenderbuffersEXT (1, numpy.array(fbo_id0)) 

or

glDeleteRenderbuffersEXT (2, numpy.array([fbo_id0, fbo_id1]))

and not

glDeleteRenderbuffersEXT (1, [int(fbo_id)]) 

which fails silently ...

The doc is very sparse on the subject, and the fact that it fails silently
is not very cool ...




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2727274&group_id=5988

------------------------------------------------------------------------------
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net