fix in OpenGL ES code

This commit is contained in:
Eduardo Bart 2012-02-03 12:02:59 -02:00
parent 444d3a4fcb
commit 3277c050c5
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ void Texture::setSmooth(bool smooth)
std::vector<uint8> Texture::getPixels()
{
std::vector<uint8> 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));