fix compile issues on n900
This commit is contained in:
parent
7eead50806
commit
203d5768cb
|
@ -33,7 +33,6 @@
|
||||||
#include <framework/graphics/graphics.h>
|
#include <framework/graphics/graphics.h>
|
||||||
#include <framework/graphics/painter.h>
|
#include <framework/graphics/painter.h>
|
||||||
#include <framework/luascript/luainterface.h>
|
#include <framework/luascript/luainterface.h>
|
||||||
#include <../../oglrenderer/graphics/painter.h>
|
|
||||||
|
|
||||||
Application *g_app = nullptr;
|
Application *g_app = nullptr;
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ std::vector<uint8> Texture::getPixels()
|
||||||
// copy pixels from opengl memory
|
// copy pixels from opengl memory
|
||||||
std::vector<uint8> pixels(m_glSize.area()*4, 0);
|
std::vector<uint8> pixels(m_glSize.area()*4, 0);
|
||||||
glBindTexture(GL_TEXTURE_2D, m_textureId);
|
glBindTexture(GL_TEXTURE_2D, m_textureId);
|
||||||
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]);
|
//glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]);
|
||||||
|
|
||||||
// convert pixels to the real texture size
|
// convert pixels to the real texture size
|
||||||
if(m_size != m_glSize)
|
if(m_size != m_glSize)
|
||||||
|
|
Loading…
Reference in New Issue