fix in OpenGL ES code
This commit is contained in:
parent
444d3a4fcb
commit
3277c050c5
|
@ -119,7 +119,7 @@ void Texture::setSmooth(bool smooth)
|
||||||
std::vector<uint8> Texture::getPixels()
|
std::vector<uint8> Texture::getPixels()
|
||||||
{
|
{
|
||||||
std::vector<uint8> pixels(m_size.area()*4, 0);
|
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
|
// 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
|
// 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));
|
FrameBufferPtr fb(new FrameBuffer(m_size));
|
||||||
|
|
Loading…
Reference in New Issue