mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
More logs
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user