Nathan Gray wrote:
Ian Romanick wrote:
Nathan Gray wrote:

This is an example from an opengl tutorial that I'm trying out.  If I run
it with LIBGL_ALWAYS_INDIRECT it works fine, but with direct rendering I
just
get a blank window.  I'm using the radeon driver from recent CVS (checked
out yesterday anonymously) on a Dell Inspiron 4150 w/Radeon Mobility M7.

So, the example is drawing a wire-frame cube and clearing the screen as fast as it can on a single-buffered display? What do you think the odds are on a fast video card that the video refresh logic will just happen to be displaying something when it's not cleared? Pretty close to 0 I'd say. The driver isn't broken. You only see it with indirect rendering because the drawing / clearing is slower, so the cube is on the screen for a larger amount of time.

In that case shouldn't LIBGL_SYNC_REFRESH fix the problem? It doesn't.

LIBGL_SYNC_REFRESH causes the GL to wait until the vertical retrace to perform a glXSwapBuffers. That code segment has no glXSwapBuffers (because it's single buffered). Put a 'glFinish(); sleep(1);' at the end of the rendering function.





------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to