[Kde-games-devel] Re: simple QGLWidget program

Andreas Beckermann b_mann at gmx.de
Tue Jan 27 13:48:02 CET 2004


On Tuesday 27 January 2004 13:25, Jan Bernatik wrote:
> Thank's you all for helping me.
>
> I did the changes as mentioned above.
> The initializeGL() works for sure ( color of background is changed as I
> want) but no triangle shows. The interesting is, that when I add
> updateGL() at the end od paintGL(), the program consumes whole CPU time
> and crashes after 3-5 seconds with SIGSEGV. seems strange to me.

updateGL() calls paintGL(). So if you call updateGL() in paintGL() you have a 
recursive call.

> I studied the examples, and they use Lists in OpenGL, so it's a bit
> different from that what I am trying to do.
>
> John

CU
Andi



More information about the kde-games-devel mailing list