Stefan Dirsch
756b7868e8
0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch 0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch * fixes mesa 24.3.1 gallium crash/segfault on GPUs without format modifiers (mesa issue#12253, mesa MR#32535, boo#1234302) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1354
14 lines
471 B
Diff
14 lines
471 B
Diff
src/glx/dri2_glx.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
--- a/src/glx/dri2_glx.c
|
|
+++ b/src/glx/dri2_glx.c
|
|
@@ -1399,7 +1399,7 @@ dri2GetGlxDrawableFromXDrawableId(Displa
|
|
struct dri2_display *pdp = (struct dri2_display *) d->dri2Display;
|
|
__GLXDRIdrawable *pdraw;
|
|
|
|
- if (__glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0)
|
|
+ if (pdp && __glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0)
|
|
return pdraw;
|
|
|
|
return NULL;
|