mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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->glCurrentRC = hglrc;
|
||||||
CurrentTeb->glReserved2 = hdc;
|
CurrentTeb->glReserved2 = hdc;
|
||||||
CurrentTeb->glContext = dc_data;
|
CurrentTeb->glSectionInfo = dc_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
@ -155,21 +155,21 @@ static inline
|
||||||
struct wgl_dc_data*
|
struct wgl_dc_data*
|
||||||
IntGetCurrentDcData(void)
|
IntGetCurrentDcData(void)
|
||||||
{
|
{
|
||||||
return NtCurrentTeb()->glContext;
|
return NtCurrentTeb()->glSectionInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
void
|
void
|
||||||
IntSetCurrentICDPrivate(void* value)
|
IntSetCurrentICDPrivate(void* value)
|
||||||
{
|
{
|
||||||
NtCurrentTeb()->glReserved1[0] = (ULONG_PTR)value;
|
NtCurrentTeb()->glContext = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
void*
|
void*
|
||||||
IntGetCurrentICDPrivate(void)
|
IntGetCurrentICDPrivate(void)
|
||||||
{
|
{
|
||||||
return (void*)NtCurrentTeb()->glReserved1[0];
|
return (void*)NtCurrentTeb()->glContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
|
Loading…
Reference in a new issue