http://bugs.freedesktop.org/show_bug.cgi?id=22561


Jon TURNEY <jon.tur...@dronecode.org.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #27273|0                           |1
        is obsolete|                            |




--- Comment #1 from Jon TURNEY <jon.tur...@dronecode.org.uk>  2009-07-03 
03:54:28 PST ---
Created an attachment (id=27364)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=27364)
Patch to  move initialization of ext_list_first_time out of DRI driver

After a bit more staring at the code, the attached patch may be a more correct
way to fix this: 

ext_list_first_time is only set in the DRI driver loader CreateScreen routine
at the moment, so never gets set if DRI drivers are disabled by setting
LIBGL_ALWAYS_INDIRECT.

If ext_list_first_time isn't set, the screen's direct_support flags (which
seems to be a bit misnamed as it actually reflects the extensions supported by
the client/server combination when direct rendering isn't available) are never
intialized, so when __glXExtensionBitIsEnabled() is used to check them, they
are always false.

So, this patch moves the initialization of ext_list_first_time out of the DRI
driver loaders and up to where the screen config is allocated and initalized.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to