fix bug running in virtualbox

This commit is contained in:
Eduardo Bart
2011-11-26 01:35:54 -02:00
parent 1386064d71
commit 9ca1637677
4 changed files with 7 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ uint Texture::internalLoadGLTexture(uchar *pixels, int channels, int width, int
std::vector<uint8> tmp;
// old opengl drivers only accept power of two dimensions
if(!g_graphics.isExtensionSupported("GL_ARB_texture_non_power_of_two")) {
//if(!g_graphics.isExtensionSupported("GL_ARB_texture_non_power_of_two")) {
int glWidth = 1;
while(glWidth < width)
glWidth = glWidth << 1;
@@ -92,8 +92,8 @@ uint Texture::internalLoadGLTexture(uchar *pixels, int channels, int width, int
}
m_glSize.setSize(glWidth, glHeight);
} else
m_glSize = m_size;
//} else
// m_glSize = m_size;
// detect pixels GL format
GLenum format = 0;