11-26-2005, 03:38 AM
I have a strange problem in my openGL application.
The application(which is a small program without complex graphics) seemed to use a lot of (graphical) resources. For instances if I where running my application and internet explorer at the same time, Internet explorer would draw any webpages real slow and take minutes to respond to keyboard input.
But if I added the following code in my display loop:
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPopAttrib();
everything seemed to work fine.
Why can this be? There obviously is something wrong with my code, but what is it???
I would appreciate any help!
The application(which is a small program without complex graphics) seemed to use a lot of (graphical) resources. For instances if I where running my application and internet explorer at the same time, Internet explorer would draw any webpages real slow and take minutes to respond to keyboard input.
But if I added the following code in my display loop:
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPopAttrib();
everything seemed to work fine.
Why can this be? There obviously is something wrong with my code, but what is it???
I would appreciate any help!