diff --git a/src/libs/tgfclient/glfeatures.cpp b/src/libs/tgfclient/glfeatures.cpp index 841c7dfb..ab7b9f16 100644 --- a/src/libs/tgfclient/glfeatures.cpp +++ b/src/libs/tgfclient/glfeatures.cpp @@ -203,22 +203,16 @@ bool GfglFeatures::detectBestSupport(int& nWidth, int& nHeight, int& nDepth, // Anti-aliasing : detect the max supported number of samples // (assumed to be <= 32). -#ifndef WIN32 - SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); -#endif int nMaxMultiSamples = 32; // Hard coded max value for the moment. while (!pWinSurface && nMaxMultiSamples > 1) { // Set the anti-aliasing attributes and setup the video mode. -#ifdef WIN32 SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); -#endif SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, nMaxMultiSamples); pWinSurface = SDL_SetVideoMode(nWidth, nHeight, nCurrDepth, bfVideoMode); // Now check if we have a video mode, and if it actually features // what we specified. -#ifdef WIN32 int nActualSampleBuffers = 0; SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &nActualSampleBuffers); int nActualMultiSamples = 0; @@ -229,7 +223,6 @@ bool GfglFeatures::detectBestSupport(int& nWidth, int& nHeight, int& nDepth, // If not, try a lower number of samples. if (nActualSampleBuffers == 0 || nActualMultiSamples != nMaxMultiSamples) pWinSurface = 0; -#endif if (!pWinSurface) { GfLogTrace("%d+%d bit %dx anti-aliased double-buffer not supported\n",