mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[OPENGL32] Fix usage of TEB members.
This commit is contained in:
parent
f5471b7b4b
commit
a8fa5394ef
1 changed files with 4 additions and 4 deletions
|
@ -134,7 +134,7 @@ IntMakeCurrent(HGLRC hglrc, HDC hdc, struct wgl_dc_data* dc_data)
|
|||
|
||||
CurrentTeb->glCurrentRC = hglrc;
|
||||
CurrentTeb->glReserved2 = hdc;
|
||||
CurrentTeb->glContext = dc_data;
|
||||
CurrentTeb->glSectionInfo = dc_data;
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
|
@ -155,21 +155,21 @@ static inline
|
|||
struct wgl_dc_data*
|
||||
IntGetCurrentDcData(void)
|
||||
{
|
||||
return NtCurrentTeb()->glContext;
|
||||
return NtCurrentTeb()->glSectionInfo;
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
void
|
||||
IntSetCurrentICDPrivate(void* value)
|
||||
{
|
||||
NtCurrentTeb()->glReserved1[0] = (ULONG_PTR)value;
|
||||
NtCurrentTeb()->glContext = value;
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
void*
|
||||
IntGetCurrentICDPrivate(void)
|
||||
{
|
||||
return (void*)NtCurrentTeb()->glReserved1[0];
|
||||
return (void*)NtCurrentTeb()->glContext;
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
|
|
Loading…
Reference in a new issue