mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader_runner: Cleanup on insufficient GLSL support in gl_runner_init() (Valgrind).
This commit is contained in:
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
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user