Re: [PyOpenGL-Users] BUG (?) Exceptions not working?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2010-02-06 13:10:38
|
Ian Mallett wrote: > Hi, > > Just to clarify, the code presented was an excerpt. I was actually > using variations with the file attached for testing. > > Interestingly, the code you did /doesn't/ crash for me: > > >>> import pygame > >>> from OpenGL.GL import * > >>> pygame.init() > (6, 0) > >>> pygame.display.set_mode((100,100), pygame.OPENGL) > <Surface(100x100x32 SW)> > >>> glViewport(0,0,-800,-800) > >>> glBegin(GL_QUADS) > >>> glClear(GL_DEPTH_BUFFER_BIT) > >>> glEnd() > >>> > > Ideas? > Thanks, > Ian Can you tell me platform, card, etceteras? That sounds like a bug, if you've got a context you should be getting the glCheckError() function running, but there is platform-specific code to guard against getting protection faults if you call a function before there's a context. I'm not likely to get any time to work on PyOpenGL before the conference, but it's beginning to look like I'll be spending at least one full day of the sprints on it, so if there are things that need addressing, now's the time to bring them to my attention. Take care, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |