aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-08-04 04:23:00 +0000
committerAlejandro Marzini2010-08-04 04:23:00 +0000
commit7968374e27d3070bcc8d6e9eafb299eecbd60165 (patch)
tree23b4c053c56c5774a726c4625e1057bce79b0892 /backends/graphics/openglsdl
parenteff862290b337ab6935b4c284ba1b0c0200c1e95 (diff)
downloadscummvm-rg350-7968374e27d3070bcc8d6e9eafb299eecbd60165.tar.gz
scummvm-rg350-7968374e27d3070bcc8d6e9eafb299eecbd60165.tar.bz2
scummvm-rg350-7968374e27d3070bcc8d6e9eafb299eecbd60165.zip
OPENGL: Fix compiling for GLES.
svn-id: r51721
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp4
1 files changed, 2 insertions, 2 deletions
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());
}