   A small OpenGL viewport
  I''m creating a map-editor (Win32), but i have some probs with the gl-viewport. I mean, I use glViewport() to adjust the viewport, but glClear(GL_COLOR_BUFFER_BIT); SwapBuffers(hDC); seems to clear the entire window, but no polys are drawn outside the viewport. The window should be grey, but it''s cleared to glClearColor().BTW, nice forum. 
This is correct behaviour.  glClear clears the framebuffer, glViewport sets the screen-space clip area for rendered primitives.Although I haven''t used it, I assume the scissor region will behave in a similar way.  I guess the only thing to do in this case is to draw a quad in the viewport to clear it, that is if you don''t want to clear the entire framebuffer and redraw before swapping.