I'm having a lot of difficulty narrowing down the reason that my program sometimes crashes on startup.
No CL_Exception is thrown; I get a read access violation on a line in CL_OpenGLGraphicContextProvider::reset_texture.
I won't pretend to understand what this function does.
I only started having this problem recently, but due to the fact that the crash occurs "sometimes", I'm still not sure what addition to my code caused this to start.
I am not yet able to reproduce the error, as I have no idea where it's rooted. I don't expect anyone to be able to give me a definitive answer.
What would help me is if someone can explain what this function does, when it is called (I'm trying to figure this out but haven't yet), and if possible, some things that might cause a crash like this.
The line in reset_texture where the break happens is:
Thanks for taking the time to read this!Code:glActiveTexture( GL_TEXTURE0 + unit_index );
Update: no progress, really, but here's the documentation on CL_GraphicContextProvider::reset_texture.
Is it odd that I can't find CL_OpenGLGraphicContextProvider in the docs, but the code is breaking on its reset_texture method?