Ian Romanick wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Brian Paul wrote: > > >>I've added #ifdef/#else/#endif in _mesa_make_current() to show what >>code should be removed, and to check that the caller does what's expected. > > > I think those ASSERTs may be incorrect. When glXMakeCurrent is called > before the window is mapped, the width and height are (correctly) zero.
Hmmm, that raises a new problem. X does not allow windows with zero width or height (BadValue gets generated). Even when an X window is unmapped, it has a width and height. I guess the DRI is telling us the window size is 0 by 0 when it's unmapped, even though the X window has an actual non-zero size. We need the X window's true width and height to properly initialize OpenGL's viewport and scissor box size in _mesa_make_current(). Hmmm. -Brian ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
