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?

有帮助吗?

解决方案

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?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top