Original Post
Hi all, I've written a fullscreen/windowed mode toggle functionality for my game engine, and the code works great in Windows. However, the same code crashes under Linux. I've tracked the crash down to glDeleteTextures. The code is pretty simple, as follows: I'm really not sure what to do at this point; I need some way to reload invalidated textures, and unloading textures/destroying/recreating app window/reloading textures seems the cleanest way to accomplish this. Any suggestions would be appreciated.
if (glIsTexture(m_iglTexture) == GL_TRUE)
{
glDeleteTextures(1, &m_iglTexture); // crashes here
}