From 1b1714a7600af1c832907af4aeb96f87f86408e1 Mon Sep 17 00:00:00 2001 From: rti Date: Sat, 29 May 2010 22:44:40 +0200 Subject: [PATCH] Fixed: #948 Ryzom Client: Mac OS X X11 unsupported color depth --- code/nel/src/3d/driver/opengl/driver_opengl.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index 70f009483..fbf954ded 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -1691,7 +1691,19 @@ bool CDriverGL::getCurrentScreenMode(GfxMode &mode) mode.Frequency= devmode.dmDisplayFrequency, mode.Width= (uint16)devmode.dmPelsWidth; mode.Height= (uint16)devmode.dmPelsHeight; -#else +#elif defined(NL_OS_MAC) + + /* + TODO this is just a hack to get the ryzom client running on mac os x x11. + the implementation below relies on the vidmode extension which is not + availeble on mac os x's x11. for that reason the color depth value is + hard coded here. + FIXME replace this hack by native cocoa color depth retrieval + */ + nlwarning("FIXME: returning hardcoded color depth of 24bit"); + mode.Depth= 24; + +#elif defined(NL_OS_UNIX) # ifdef XF86VIDMODE sint pixelClock;