diff --git a/src/framework/application.cpp b/src/framework/application.cpp index 5adeecb4..9dfdd62b 100644 --- a/src/framework/application.cpp +++ b/src/framework/application.cpp @@ -33,7 +33,6 @@ #include #include #include -#include <../../oglrenderer/graphics/painter.h> Application *g_app = nullptr; diff --git a/src/framework/graphics/texture.cpp b/src/framework/graphics/texture.cpp index 2ce5dc7c..acb1034e 100644 --- a/src/framework/graphics/texture.cpp +++ b/src/framework/graphics/texture.cpp @@ -132,7 +132,7 @@ std::vector Texture::getPixels() // copy pixels from opengl memory std::vector pixels(m_glSize.area()*4, 0); 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 if(m_size != m_glSize)