aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/thumbnail.cpp
diff options
context:
space:
mode:
authoryinsimei2017-07-10 01:06:58 +0200
committerEugene Sandulenko2017-07-13 18:27:45 +0200
commit07e4982027f042c0c8fb27e28bd410cb70d51b27 (patch)
tree6525783e14b01c2bc1f789b602fcbe264e55cb9b /engines/sludge/thumbnail.cpp
parent1e261d6cd3e40e67249d9036ae78cdb7e9d9e275 (diff)
downloadscummvm-rg350-07e4982027f042c0c8fb27e28bd410cb70d51b27.tar.gz
scummvm-rg350-07e4982027f042c0c8fb27e28bd410cb70d51b27.tar.bz2
scummvm-rg350-07e4982027f042c0c8fb27e28bd410cb70d51b27.zip
SLUDGE: remove #ifdef HAVE_GLES2 and clean code in graphics
Diffstat (limited to 'engines/sludge/thumbnail.cpp')
-rw-r--r--engines/sludge/thumbnail.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/sludge/thumbnail.cpp b/engines/sludge/thumbnail.cpp
index b628f0bd8d..74c77ff5b4 100644
--- a/engines/sludge/thumbnail.cpp
+++ b/engines/sludge/thumbnail.cpp
@@ -99,7 +99,6 @@ bool saveThumbnail(Common::WriteStream *stream) {
thumbnailTextureName = 0;
// Save Our ViewPort
-#ifdef HAVE_GLES2
GLushort *image = new GLushort [thumbWidth * thumbHeight];
GLuint *tmp = new GLuint [thumbWidth * thumbHeight];
if (! checkNew(image)) return false;
@@ -111,12 +110,6 @@ bool saveThumbnail(Common::WriteStream *stream) {
}
}
delete[] tmp;
-#else
- GLushort *image = new GLushort [thumbWidth * thumbHeight];
- if (! checkNew(image)) return false;
-
- glReadPixels(viewportOffsetX, viewportOffsetY, thumbWidth, thumbHeight, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, image);
-#endif
glUseProgram(0);
#endif