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

graphics: Add precondition checks on enum arguments


We should fail early if the argument cannot possibly be a valid window
system or rendering interface. The valid window systems are
in the range 0 <= window_system < SRT_N_WINDOW_SYSTEMS, and the valid
rendering interfaces follow the same pattern.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 278932df
No related branches found
No related tags found
1 merge request!47Add more preconditions for window system/rendering interface combinations
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment