[PyOpenGL-Users] bug: glVertex2fv(None) segfaults
Brought to you by:
mcfletch
From: Maciej K. <ma...@dg...> - 2004-08-11 16:25:49
|
Quick disclaimer: I haven't updated my PyOpenGL in some time; version file shows 2.0.1.03. Alas, updating right now is not an option (lack of time, especially if upgrade doesn't go smoothly) I've noticed that glVertex2fv, and quite possibly the other vector forms of glVertex, do not handle gracefully the case when they are (erroneously) handed "None" instead of an actualy vector/sequence. I get a segfault; an exception (i.e., arg checking code) would be much more helpful. It could be that this is fixed in the latest versions of pyopengl, which I haven't tried, but I'm mailing this on the off chance that it isn't... it seems to me to be a rather rare bug, hence likely still present. -- "Diplomacy is the art of saying 'nice doggy' until you find a stone." -- unknown |