I don't think it's an uninitialized variable: In the test program egl_tfp, just changing the call to glProxyInit from where it is (after creating the X window) to an earlier point (before calling eglInitialize) makes the error appear, but I can't see any value changing besides which EGLDisplay is the one for the program and which is internal to glproxy.
I haven't been able to reproduce it with a simple test case either, even after copying all the initialization code from egl_tfp. I'm clearly missing something but I have no idea what.
I don't think it's an uninitialized variable: In the test program egl_tfp, just changing the call to glProxyInit from where it is (after creating the X window) to an earlier point (before calling eglInitialize) makes the error appear, but I can't see any value changing besides which EGLDisplay is the one for the program and which is internal to glproxy.
I haven't been able to reproduce it with a simple test case either, even after copying all the initialization code from egl_tfp. I'm clearly missing something but I have no idea what.