|
From: Lasse Kärkkäi. <tr...@us...> - 2011-07-06 23:34:44
|
Author: Vincent Le Ligeour <yo...@us...>
Date: Fri May 6 21:33:51 2011 +0200
Added stereo mandatory extension check
---
game/video_driver.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/game/video_driver.cc b/game/video_driver.cc
index 45933a5..4471648 100644
--- a/game/video_driver.cc
+++ b/game/video_driver.cc
@@ -77,6 +77,8 @@ Window::Window(unsigned int width, unsigned int height, bool fs): m_windowW(widt
if (!GLEW_VERSION_2_1) throw std::runtime_error("OpenGL 2.1 is required but not available");
+ if (!GLEW_ARB_viewport_array && config["graphic/stereo3d"].b()) throw std::runtime_error("OpenGL extension ARB_viewport_array is required but not available when using stereo mode");
+
input::SDL::init(); // Joysticks etc.
if (GLEW_VERSION_3_3) {
|