forked from bartvdbraak/blender
GHOST: Make win32 errors more readable on some drivers
This commit is contained in:
parent
cb65542d2c
commit
4fcca6a0ab
@ -59,7 +59,10 @@ bool win32_chk(bool result, const char *file, int line, const char *text)
|
||||
|
||||
DWORD count = 0;
|
||||
|
||||
switch (error) {
|
||||
/* Some drivers returns a HRESULT instead of a standard error message.
|
||||
* i.e: 0xC0072095 instead of 0x2095 for ERROR_INVALID_VERSION_ARB
|
||||
* So strip down the error to the valid error code range. */
|
||||
switch (error & 0x0000FFFF) {
|
||||
case ERROR_INVALID_VERSION_ARB:
|
||||
msg = "The specified OpenGL version and feature set are either invalid or not supported.\n";
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user