EDIT: Warning: Seems that I didn't fix the bug in the program, so I got into the same situation again (however, my program runs a few gl statements in between every glClear) and the machine became so unresponsive that I couldn't even switch to a tty (had no second computer to ssh in with, that would likely have solved it). I repeat, run it at your own risk.
Here's a test-case:
#include <sdl.h>
#include <gl.h>
int main(int argc, char *argv[])
{
SDL_Surface *screen;
int i = 0;
SDL_Init(SDL_INIT_VIDEO);
screen = SDL_SetVideoMode( 640, 480, 0, SDL_OPENGL | SDL_GL_DOUBLEBUFFER );
glMatrixMode(GL_MODELVIEW);
while (1)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
SDL_Quit();
return 0;
}
Note that I am running a rather old version of the NVidia Linux driver, 173.14.09, they could very well have fixed this in newer versions.
No comments:
Post a Comment