This is my first post here so please correct me if I’m doing something wrong.
System info: WinXP prof, SP1, NVIDIA 1.5.1, GeForce FX 5700LE/AGP/SSE/3DNOW!
I’m trying to use buffer region extension:
added the wglext.h header
got function pointers with wglGetProcAddress
created a DC with CreateCompatibleDC()
Everything looks ready to call wglCreateBufferRegionARB(), but the call always returns 0.
Calling GetLastError() is of little help, since it does not return any of the expected messages (3221685674 is returned).
Any idea on what is going wrong?
Am I using a wrong DC or a wrong PFD?
This is very strange, the GetLastError() function return system error codes, but yours is too big, on MSDN list of system error codes It goes from 0 to 15999. Are you sure you have correctly used GetLastError ?
Thanks for your time.
In a simple example built from scratch the buffer region extension works fine. So I guess the problem comes from the context (the app I’m working on). As for the strange last error, I’ll have to investigate further (maybe setting it to a know value before calling the failing function…).