Question

In my application, it crashes when I try to create wglCreateContextAttribsARB for the 128th time. It is always the 128th time, I always pass the same arguments, and it always returns 0x2095(ERROR_INVALID_VERSION_ARB). I know that it is a valid version, due to the fact that it works the first 127 times.

Is there any reason for this function call failing at this specific number?

Was it helpful?

Solution

I'd bet on driver limitation, aka a bug.

That said, ask yourself why you need so many calls to the context creation function. A typical application uses 1. Many applications use 1 per window. What are you trying to do that requires 128 contexts?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top