From 3277c050c55fef9cfc029c7556d5e7698c86cba5 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 3 Feb 2012 12:02:59 -0200 Subject: [PATCH] fix in OpenGL ES code --- src/framework/graphics/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/graphics/texture.cpp b/src/framework/graphics/texture.cpp index 8b6d48a7..0dcdc9b6 100644 --- a/src/framework/graphics/texture.cpp +++ b/src/framework/graphics/texture.cpp @@ -119,7 +119,7 @@ void Texture::setSmooth(bool smooth) std::vector Texture::getPixels() { std::vector pixels(m_size.area()*4, 0); -#ifdef OPENGL_ES +#ifdef OPENGL_ES2 // hack to copy pixels from opengl memory in opengl es // NOTE: this can be slow, but its the only way to get pixels from a texture in OpenGL ES FrameBufferPtr fb(new FrameBuffer(m_size));