CONFIGURE: Abort configure stage when invalid OpenGL mode is specified.

This commit is contained in:
Johannes Schickel 2016-01-04 10:30:13 +01:00
parent c4e65732be
commit 472dbc4a84

5
configure vendored
View File

@ -4232,6 +4232,11 @@ case $_opengl_mode in
echo "yes (OpenGL ES 2)"
add_line_to_config_h "#define USE_GLES_MODE 2"
;;
*)
echo "invalid mode specification '$_opengl_mode'. Aborting."
exit 1
;;
esac
define_in_config_if_yes "$_opengl" "USE_OPENGL"