fix compile issues on n900

This commit is contained in:
Eduardo Bart 2011-12-06 22:45:38 -02:00
parent 7eead50806
commit 203d5768cb
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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)