From c6874d14c21c74d8a40905e3358b49bc3f2520e2 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 11 Jun 2007 15:46:00 +0200 Subject: [PATCH] * Move ILUT initialization down to below OpenGL initilization, to prevent segfaults. --- ABM2/Amaltheia/Graphics.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ABM2/Amaltheia/Graphics.cpp b/ABM2/Amaltheia/Graphics.cpp index 270f6c5..6824297 100644 --- a/ABM2/Amaltheia/Graphics.cpp +++ b/ABM2/Amaltheia/Graphics.cpp @@ -373,9 +373,6 @@ int Graphics::createDisplay() std::cerr << "Video query failed: " << SDL_GetError() << std::endl; return 2; } - ilInit(); - iluInit(); - ilutRenderer(ILUT_OPENGL); /* * Now, we want to setup our requested @@ -415,6 +412,10 @@ int Graphics::createDisplay() return 2; } + ilInit(); + iluInit(); + ilutRenderer(ILUT_OPENGL); + SDL_SetGamma(1.8, 1.8, 1.8); float ratio = ( float ) width / ( float ) height; -- 2.30.2