Port Linux GLimp to SDL

Use SDL to set video modes, get a GL context and detect the
amount of VRAM.
As with the Linux GLimp implementation, sys_videoRam can be used
in case the SDL detection fails.
This commit is contained in:
dhewg 2011-12-29 19:19:57 +01:00 committed by Daniel Gibson
parent 1597e6c3b3
commit ff36277408

View file

@ -98,7 +98,6 @@ include_directories(${SDL_INCLUDE_DIR})
if (UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
add_definitions(-DXTHREADS)
include_directories(${X11_INCLUDE_DIR})
if (os MATCHES ".*bsd" OR os STREQUAL "dragonfly")
@ -685,10 +684,9 @@ else()
set(src_sys_core
${src_stub_util}
sys/glimp.cpp
sys/posix/posix_input.cpp
sys/linux/glimp.cpp
sys/linux/input.cpp
sys/linux/libXNVCtrl/NVCtrl.c
)
endif()