Skip to content

Commit e8222b1

Browse files
dos1SiegeLord
authored andcommitted
SDL: check for OpenGL support when configuring
1 parent b5f57e5 commit e8222b1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,14 @@ if(UNIX) # includes MACOSX
661661
endif()
662662
endif(UNIX)
663663

664+
#
665+
# SDL
666+
#
667+
668+
if(ALLEGRO_SDL AND NOT SUPPORT_OPENGL)
669+
message(FATAL_ERROR "SDL support currently requires OpenGL or OpenGL ES support.")
670+
endif(ALLEGRO_SDL AND NOT SUPPORT_OPENGL)
671+
664672
#
665673
# X Window System
666674
#
@@ -679,7 +687,7 @@ if(ALLEGRO_UNIX AND NOT SUPPORT_X11 AND WANT_X11) # not MACOSX
679687
endif(ALLEGRO_UNIX AND NOT SUPPORT_X11 AND WANT_X11)
680688

681689
if(SUPPORT_X11 AND NOT SUPPORT_OPENGL)
682-
message(FATAL_ERROR "X11 support currently requires OpenGL support.")
690+
message(FATAL_ERROR "X11 support currently requires OpenGL or OpenGL ES support.")
683691
endif(SUPPORT_X11 AND NOT SUPPORT_OPENGL)
684692

685693
if(SUPPORT_X11)

0 commit comments

Comments
 (0)