Ulrich Czekalla wrote: > Hi All, > > I'm trying to solve an issue in Wine where child windows that use opengl > are not being clipped or positioned correctly. The problem is caused by the > fact that in Wine we only use a X window for top level windows and all > child Windows are "light weight" windows managed by Wine with no > corresponding X window. > > Part of the current solution is to override the viewport and scissor to > correctly place and clip the child window on the top level X window. This > works fine until an application calls glXSwapBuffers. My NVidia proprietary > driver does honor the viewport and scissor on a glXSwapBuffer so all is > good but if I switch to Mesa it doesn't so everything outside the > viewport/scissor gets clobbered. > > The glX spec. doesn't specify how glXSwapBuffers should handle the viewport > or scissor. My question is why don't the Mesa drivers honor the viewport > or scissor? Was it a conscious decision? Is it difficult to do? > The viewport and scissor box are NOT supposed to effect SwapBuffers. I'm very suprised to hear that NVIDIA does what you say.
One work around would be this: glReadBuffer(GL_BACK); glDrawBuffer(GL_FRONT); glCopyPixels(0, 0, w, h, GL_COLOR); -Brian ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev