mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
opengl32: Fix get_current_context_type() to not shift the type bits down.
The result is compared directly with handle type values like HANDLE_CONTEXT whose meaningful values are in the high nibble.
This commit is contained in:
parent
9defaa53a1
commit
4a6743e913
@ -165,7 +165,7 @@ static void free_handle_ptr( struct wgl_handle *ptr )
|
||||
static inline enum wgl_handle_type get_current_context_type(void)
|
||||
{
|
||||
if (!NtCurrentTeb()->glCurrentRC) return HANDLE_CONTEXT;
|
||||
return (LOWORD(NtCurrentTeb()->glCurrentRC) & HANDLE_TYPE_MASK) >> 12;
|
||||
return LOWORD(NtCurrentTeb()->glCurrentRC) & HANDLE_TYPE_MASK;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user