Permalink
Browse files

SDLVideo: be smarter about plugin registration

  • Loading branch information...
lynxlynxlynx committed May 2, 2014
1 parent 7442750 commit fabdcaacb086f2b32a81ff7c6a3d64e7c1fa5f9f
Showing with 3 additions and 2 deletions.
  1. +1 −0 cmake/cmake_config.h.in
  2. +2 −2 gemrb/plugins/SDLVideo/SDL20Video.cpp
View
@@ -11,6 +11,7 @@
#cmakedefine DATADIR "${DATA_DIR}"
#cmakedefine SYSCONFDIR "${SYSCONF_DIR}"
#cmakedefine NOCOLOR ${NOCOLOR}
+#cmakedefine USE_OPENGL ${USE_OPENGL}
#cmakedefine HAVE_MALLOC_H 1
#cmakedefine HAVE_UNISTD_H 1
#cmakedefine WIN32_USE_STDIO 1
@@ -830,10 +830,10 @@ float SDL20VideoDriver::ScaleCoordinateVertical(float y)
return y * height;
}
-/*
+#ifndef USE_OPENGL
#include "plugindef.h"
GEMRB_PLUGIN(0xDBAAB50, "SDL Video Driver")
PLUGIN_DRIVER(SDL20VideoDriver, "sdl")
END_PLUGIN()
-*/
+#endif

0 comments on commit fabdcaa

Please sign in to comment.