@@ -5270,8 +5270,8 @@ PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = NULL;
52705270 typedef BOOL (WINAPI * PFN_wglDeleteContext )(HGLRC );
52715271 typedef PROC (WINAPI * PFN_wglGetProcAddress )(LPCSTR );
52725272 typedef BOOL (WINAPI * PFN_wglMakeCurrent )(HDC , HGLRC );
5273- typedef HDC (WINAPI * PFN_wglGetCurrentDC )( );
5274- typedef HGLRC (WINAPI * PFN_wglGetCurrentContext )( );
5273+ typedef HDC (WINAPI * PFN_wglGetCurrentDC )(void );
5274+ typedef HGLRC (WINAPI * PFN_wglGetCurrentContext )(void );
52755275 typedef BOOL (WINAPI * PFN_wglShareLists )(HGLRC , HGLRC );
52765276
52775277 PFN_wglCreateContext wglCreateContextSRC ;
@@ -5459,13 +5459,13 @@ RGFW_window* RGFW_createWindow(const char* name, RGFW_rect rect, RGFW_windowArgs
54595459 if (wglinstance == NULL ) {
54605460 wglinstance = LoadLibraryA ("opengl32.dll" );
54615461 #ifdef RGFW_WGL_LOAD
5462- wglCreateContextSRC = (PFN_wglCreateContext ) GetProcAddress (wglinstance , "wglCreateContext" );
5463- wglDeleteContextSRC = (PFN_wglDeleteContext ) GetProcAddress (wglinstance , "wglDeleteContext" );
5464- wglGetProcAddressSRC = (PFN_wglGetProcAddress ) GetProcAddress (wglinstance , "wglGetProcAddress" );
5465- wglMakeCurrentSRC = (PFN_wglMakeCurrent ) GetProcAddress (wglinstance , "wglMakeCurrent" );
5466- wglGetCurrentDCSRC = (PFN_wglGetCurrentDC ) GetProcAddress (wglinstance , "wglGetCurrentDC" );
5467- wglGetCurrentContextSRC = (PFN_wglGetCurrentContext ) GetProcAddress (wglinstance , "wglGetCurrentContext" );
5468- wglShareListsSRC = (PFN_wglShareLists )GetProcAddress (wglinstance , "wglShareLists" );
5462+ wglCreateContextSRC = (PFN_wglCreateContext ) ( void * ) GetProcAddress (wglinstance , "wglCreateContext" );
5463+ wglDeleteContextSRC = (PFN_wglDeleteContext ) ( void * ) GetProcAddress (wglinstance , "wglDeleteContext" );
5464+ wglGetProcAddressSRC = (PFN_wglGetProcAddress ) ( void * ) GetProcAddress (wglinstance , "wglGetProcAddress" );
5465+ wglMakeCurrentSRC = (PFN_wglMakeCurrent ) ( void * ) GetProcAddress (wglinstance , "wglMakeCurrent" );
5466+ wglGetCurrentDCSRC = (PFN_wglGetCurrentDC ) ( void * ) GetProcAddress (wglinstance , "wglGetCurrentDC" );
5467+ wglGetCurrentContextSRC = (PFN_wglGetCurrentContext ) ( void * ) GetProcAddress (wglinstance , "wglGetCurrentContext" );
5468+ wglShareListsSRC = (PFN_wglShareLists ) ( void * ) GetProcAddress (wglinstance , "wglShareLists" );
54695469 #endif
54705470 }
54715471
0 commit comments