From 7968374e27d3070bcc8d6e9eafb299eecbd60165 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Wed, 4 Aug 2010 04:23:00 +0000 Subject: OPENGL: Fix compiling for GLES. svn-id: r51721 --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index cdaf3a3ebd..dddf73f3f8 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -174,7 +174,7 @@ void OpenGLSdlGraphicsManager::detectSupportedFormats() { if (RGBList[i] != format) _supportedFormats.push_back(RGBList[i]); } - +#ifndef USE_GLES // Push some BGR formats for (int i = 0; i < ARRAYSIZE(BGRList); i++) { if (_hwscreen && (BGRList[i].bytesPerPixel > format.bytesPerPixel)) @@ -182,7 +182,7 @@ void OpenGLSdlGraphicsManager::detectSupportedFormats() { if (BGRList[i] != format) _supportedFormats.push_back(BGRList[i]); } - +#endif _supportedFormats.push_back(Graphics::PixelFormat::createFormatCLUT8()); } -- cgit v1.2.3