1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

More logs

This commit is contained in:
paracelsus
2013-03-09 22:49:15 +00:00
parent 54506e7c29
commit d4a74b536d
2 changed files with 33 additions and 13 deletions

View File

@ -19,6 +19,13 @@ void CImage::loadToVideoRAM()
if (texHandle > 0) return;
glGenTextures(1, &texHandle);
glBindTexture(GL_TEXTURE_RECTANGLE, texHandle);
GLenum err = glGetError();
if (err != GL_NO_ERROR)
{
tlog1 << "Gfx Error: glBindTexture faild in loadToVideoRAM\n";
tlog1 << "GL error code = " << err << std::endl;
}
textureTransfer();
}