From 8e508cf0658dd3de0a05c79c456f13eb81100afe Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 13 Apr 2018 20:13:54 +0300 Subject: [PATCH] Remove WGL function pointers, remove HDC --- engine/client/gl_export.h | 21 +-------------------- engine/client/gl_local.h | 5 ++--- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/engine/client/gl_export.h b/engine/client/gl_export.h index 12c4f2a6..ca5b8e79 100644 --- a/engine/client/gl_export.h +++ b/engine/client/gl_export.h @@ -1279,24 +1279,5 @@ void ( APIENTRY *pglGenVertexArrays )( GLsizei n, const GLuint *arrays ); GLboolean ( APIENTRY *pglIsVertexArray )( GLuint array ); void ( APIENTRY * pglSwapInterval) ( int interval ); extern void *pglGetProcAddress( const GLubyte * ); -BOOL ( WINAPI * pwglSwapBuffers)(HDC); -BOOL ( WINAPI * pwglCopyContext)(HGLRC, HGLRC, UINT); -HGLRC ( WINAPI * pwglCreateContext)(HDC); -HGLRC ( WINAPI * pwglCreateLayerContext)(HDC, int); -BOOL ( WINAPI * pwglDeleteContext)(HGLRC); -HGLRC ( WINAPI * pwglGetCurrentContext)(VOID); -PROC ( WINAPI * pwglGetProcAddress)(LPCSTR); -BOOL ( WINAPI * pwglMakeCurrent)(HDC, HGLRC); -BOOL ( WINAPI * pwglShareLists)(HGLRC, HGLRC); -BOOL ( WINAPI * pwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD); -BOOL ( WINAPI * pwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT); -BOOL ( WINAPI * pwglDescribeLayerPlane)(HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR); -int ( WINAPI * pwglSetLayerPaletteEntries)(HDC, int, int, int, CONST COLORREF *); -int ( WINAPI * pwglGetLayerPaletteEntries)(HDC, int, int, int, COLORREF *); -BOOL ( WINAPI * pwglRealizeLayerPalette)(HDC, int, BOOL); -BOOL ( WINAPI * pwglSwapLayerBuffers)(HDC, UINT); -BOOL ( WINAPI * pwglSwapIntervalEXT)( int interval ); -HGLRC ( WINAPI * pwglCreateContextAttribsARB)( HDC hDC, HGLRC hShareContext, const int *attribList ); -const char *( WINAPI * pwglGetExtensionsStringEXT)( void ); -#endif//GL_EXPORT_H \ No newline at end of file +#endif//GL_EXPORT_H diff --git a/engine/client/gl_local.h b/engine/client/gl_local.h index 2c78105a..9560ba01 100644 --- a/engine/client/gl_local.h +++ b/engine/client/gl_local.h @@ -616,8 +616,7 @@ typedef struct typedef struct { - HDC hDC; // handle to device context - HGLRC hGLRC; // handle to GL rendering context + void* context; // handle to GL rendering context int desktopBitsPixel; int desktopWidth; @@ -674,4 +673,4 @@ extern convar_t *vid_brightness; extern convar_t *vid_gamma; extern convar_t *vid_mode; -#endif//GL_LOCAL_H \ No newline at end of file +#endif//GL_LOCAL_H