I am getting an Illegal Instruction exception for OpenGL, and I'm wondering what are common causes of this are and how I should go about tracking them down.
- It only happens on my desktop, but code works fine when I develop on my laptop. Games and other graphics accelerated applications work fine on the box.
- I am 99.9% sure a context is current. I use GLEW in multi-threaded mode, and the context wrapper class sets a thread local GLEWContext to NULL when not current, so OpenGL API functions would not de-reference otherwise.
- This happens on a call to glClearColor(). This is the first API call I make, but if I put it after my glEnable()/glDisable() initialization, it still fails on glClearColor()
- I am using a version 4.2 context in compatibility mode.
Thank you for any assistance.