This topic is now archived and is closed to further replies.


glViewport Can't restrain glClear

Recommended Posts

I set glViewport to a portion of a window, then call glClear(GL_COLOR_BUFFER_BIT) to want set the portion''s backgroud color. but actually it clears the whole window. my pc''s viedo card is nvidia''s geforce, and I used to clear a viewport in D3D. Does glViewport restrain any drawings to it''s portion? How to clear a portion of a window?

Share this post

Link to post
Share on other sites