mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
libobs-opengl: Fix non-exhaustive switch statement
This commit is contained in:
parent
db3a01db6b
commit
2f4b611fd7
|
@ -28,17 +28,17 @@ static void init_winsys(void)
|
||||||
{
|
{
|
||||||
assert(gl_vtable == NULL);
|
assert(gl_vtable == NULL);
|
||||||
|
|
||||||
switch (obs_get_nix_platform()) {
|
enum obs_nix_platform_type platform = obs_get_nix_platform();
|
||||||
case OBS_NIX_PLATFORM_X11_EGL:
|
|
||||||
|
if (platform == OBS_NIX_PLATFORM_X11_EGL)
|
||||||
gl_vtable = gl_x11_egl_get_winsys_vtable();
|
gl_vtable = gl_x11_egl_get_winsys_vtable();
|
||||||
break;
|
|
||||||
#ifdef ENABLE_WAYLAND
|
#ifdef ENABLE_WAYLAND
|
||||||
case OBS_NIX_PLATFORM_WAYLAND:
|
if (platform == OBS_NIX_PLATFORM_WAYLAND) {
|
||||||
gl_vtable = gl_wayland_egl_get_winsys_vtable();
|
gl_vtable = gl_wayland_egl_get_winsys_vtable();
|
||||||
blog(LOG_INFO, "Using EGL/Wayland");
|
blog(LOG_INFO, "Using EGL/Wayland");
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
assert(gl_vtable != NULL);
|
assert(gl_vtable != NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue