GetLastError for Errors [ARB /] WGL
It seems that certain API-specific calls are setting the error being returned GetLastError()
. For example, it wglCreateContextAttribsARB(...)
can return (information from the spec ):
ERROR_INVALID_VERSION_ARB == 0x2095
ERROR_INVALID_PROFILE_ARB == 0x2096
However, I get different results when debugging. For example, trying to use wglCreateContextAttribsARB(...)
GL 4.5 to configure the context (which my GPU does not support) results in a value error 0xC0072095
. The lower 16 bits correspond to an invalid version error (which makes sense because this is a version issue), but the upper 16 bits don't make sense to me.
I took down the GetLastError documentation which said bit 29 should be set for application error codes. However, I could find no excuse as to why the other bits would be set, and in any case, this is contrary to the ARB specification, which says that such and such a value is returned.
What's happening?
source to share
No one has answered this question yet
Check out similar questions: