glRasterPos* EInvalidOp

Hello!

I’m trying to draw bitmap and select position with glRasterPos2f(-400, -400). Following error raised: “Exception EInvalidOp in module nvoglnt.dll at 001DEAB6. Invalid floating point operation.”

This error is only raised in one of my computers and in fullscreen mode! This computer has NVidia Geforce FX 5700LE. I tried also with newest drivers, but it didn’t solve the problem. Error is only raised on first call. Second time works just fine.

Here’s how I InitGL:

 
  glClearColor(0.95, 0.95, 0.95, 0.95);
  glShadeModel(GL_FLAT);
 

An on resize:

 
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluOrtho2D(-800, 800, -600, 600);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
 

Finally on draw:

 
  glClear(GL_COLOR_BUFFER_BIT);
  glPushMatrix();
  glRasterPos2f(0, 0); // Error EInvalidOp
 

All of this works in windowed mode.

Thanks