[Xquartz-dev] 2.3.3_rc1
Jeremy Huddleston
jeremyhu at apple.com
Tue Mar 10 12:48:34 PDT 2009
On Mar 10, 2009, at 12:31, Jeremy Huddleston wrote:
> BTW, one more point I just want to clarify. Are you certain that
> the version of vmd-xplor on all machines is identical and that they
> are all linking against the libGL in /usr/X11/lib/libGL.dylib?
>
> You're good about that sort of thing, but I just wanted to be
> explicit since it might be possible to link against a Mesa libGL if
> it was built with MacPorts or Fink or some other package system.
>
> Also, as for dropping down to software rendering goes, I added
> support for two environment variables: LIBGL_ALWAYS_HARDWARE and
> LIBGL_ALWAYS_SOFTWARE. See http://xquartz.macosforge.org/trac/changeset/304
Now that I look at this some more, I think there are still some bits
missing. The GLcontextMode that we're passed in
apple_visual_create_pfobj may actually be a SW-only mode, and by
forcing kCGLPFAAccelerated, kCGLPFAClosestPolicy in the attribs, we're
not going to get the actual mode requested but a similar fit. We
probably need to add some bits to filter the visuals and fbconfigs
based on LIBGL_ALWAYS_SOFTWARE as well.
But the lib that I sent you should still work at forcing HW or SW...
you will just get a "close" rather than "exact" match for the visual.
As George mentioned, try using the LIBGL_DUMP_VISUALID environment
variable to see what visuals are being used for your HW and SW renderer.
--Jeremy
More information about the Xquartz-dev
mailing list