Skip to content
Snippets Groups Projects
Commit 1234c545 authored by Simon McVittie's avatar Simon McVittie
Browse files

graphics: Diagnose impossible window system, rendering interface

parent 497bf147
Branches
Tags
1 merge request!47Add more preconditions for window system/rendering interface combinations
......@@ -294,11 +294,17 @@ _srt_check_graphics (const char *helpers_path,
platformstring = g_strdup ("glx");
window_system = SRT_WINDOW_SYSTEM_GLX;
}
else
else if (rendering_interface == SRT_RENDERING_INTERFACE_GLESV2)
{
platformstring = g_strdup ("x11_egl");
window_system = SRT_WINDOW_SYSTEM_EGL_X11;
}
else
{
/* should not be reached because the precondition checks
* should have caught this */
g_return_val_if_reached (SRT_GRAPHICS_ISSUES_INTERNAL_ERROR);
}
}
else if (window_system == SRT_WINDOW_SYSTEM_EGL_X11)
{
......@@ -306,6 +312,8 @@ _srt_check_graphics (const char *helpers_path,
}
else
{
/* should not be reached because the precondition checks should
* have caught this */
g_return_val_if_reached (SRT_GRAPHICS_ISSUES_INTERNAL_ERROR);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment