[OPENGL32] Fix usage of TEB members.

This commit is contained in:
Bernhard Feichtinger 2019-04-13 23:24:21 +02:00 committed by Hermès Bélusca-Maïto
parent f5471b7b4b
commit a8fa5394ef
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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