glx: add a workaround to glXDestroyWindow for Viewperf2020/Sw
This fixes: X Error of failed request: GLXBadWindow Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 32 (X_GLXDestroyWindow) Serial number of failed request: 9667 Current serial number in output stream: 9674 Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13611>
This commit is contained in:
@@ -1020,6 +1020,13 @@ dri3_create_screen(int screen, struct glx_display * priv)
|
||||
&force) == 0) {
|
||||
psc->base.force_direct_context = force;
|
||||
}
|
||||
|
||||
uint8_t invalid_glx_destroy_window = false;
|
||||
if (psc->config->configQueryb(psc->driScreen,
|
||||
"allow_invalid_glx_destroy_window",
|
||||
&invalid_glx_destroy_window) == 0) {
|
||||
psc->base.allow_invalid_glx_destroy_window = invalid_glx_destroy_window;
|
||||
}
|
||||
}
|
||||
|
||||
free(driverName);
|
||||
|
Reference in New Issue
Block a user