mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 08:20:12 +01:00
glx: determine is_direct_capable from driver type
indirect contexts have no driver type Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30619>
This commit is contained in:
parent
912090fa96
commit
2c50ee4398
1 changed files with 1 additions and 1 deletions
|
|
@ -1150,7 +1150,7 @@ glXQueryExtensionsString(Display * dpy, int screen)
|
|||
}
|
||||
|
||||
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
|
||||
is_direct_capable = (psc->driScreen != NULL);
|
||||
is_direct_capable = (psc->display->driver != 0);
|
||||
#endif
|
||||
__glXCalculateUsableExtensions(psc, is_direct_capable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue