tests/shader_runner: Cleanup on insufficient GLSL support in gl_runner_init() (Valgrind).

This commit is contained in:
Henri Verbeet 2024-04-02 16:31:56 +02:00 committed by Alexandre Julliard
parent 46bd3b1545
commit 64418dd290
Notes: Alexandre Julliard 2024-04-03 00:23:07 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/754

View File

@ -241,6 +241,9 @@ static bool gl_runner_init(struct gl_runner *runner, enum shading_language langu
if (major < 4 || (major == 4 && minor < 40))
{
trace("Device %u does not support GLSL 4.40.\n", i);
eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
eglDestroyContext(display, context);
eglTerminate(display);
continue;
}
}