I have a problem, when i destroy the openGL context and later recreate it and call glGenTextures
then it's gave me already past used id(s). This is a problem because those ids are potentially still assigned to some texture wrapper that are in some background thread that didn't yet have the time to call glDeleteTextures
. So when these background thread will call glDeleteTextures
then they will delete new texture instead :(
so is their a way for force glGenTextures
to be always auto incremented even after deleting/recreating the OpenGl context ?