https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a8fa5394ef802757023a70...
commit a8fa5394ef802757023a70870fafce7421a02204 Author: Bernhard Feichtinger 43303168+BieHDC@users.noreply.github.com AuthorDate: Sat Apr 13 23:24:21 2019 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Mon Apr 22 17:42:13 2019 +0200
[OPENGL32] Fix usage of TEB members. --- dll/opengl/opengl32/opengl32.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dll/opengl/opengl32/opengl32.h b/dll/opengl/opengl32/opengl32.h index 8808ca55ff..32b4f35b32 100644 --- a/dll/opengl/opengl32/opengl32.h +++ b/dll/opengl/opengl32/opengl32.h @@ -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