diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c
index 584c9392b2..ac60b8dca3 100644
--- a/gfx/common/win32_common.c
+++ b/gfx/common/win32_common.c
@@ -666,7 +666,6 @@ static bool win32_browser(
    return result;
 }
 
-
 static LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
 {
    WPARAM mode            = wparam & 0xffff;
@@ -1043,7 +1042,7 @@ LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message,
 #endif
 
 #if defined(HAVE_OPENGL) || defined(HAVE_OPENGL1) || defined(HAVE_OPENGL_CORE) || defined(HAVE_VULKAN)
-LRESULT CALLBACK WndProcGL(HWND hwnd, UINT message,
+LRESULT CALLBACK WndProcWGL(HWND hwnd, UINT message,
       WPARAM wparam, LPARAM lparam)
 {
    LRESULT ret;
diff --git a/gfx/common/win32_common.h b/gfx/common/win32_common.h
index f7fe71c6d3..c8e1c0ddf5 100644
--- a/gfx/common/win32_common.h
+++ b/gfx/common/win32_common.h
@@ -127,7 +127,7 @@ LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message,
 #endif
 
 #if defined(HAVE_OPENGL) || defined(HAVE_OPENGL1) || defined(HAVE_OPENGL_CORE) || defined(HAVE_VULKAN)
-LRESULT CALLBACK WndProcGL(HWND hwnd, UINT message,
+LRESULT CALLBACK WndProcWGL(HWND hwnd, UINT message,
       WPARAM wparam, LPARAM lparam);
 #endif
 
diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c
index b062b8e9db..2915f477c1 100644
--- a/gfx/drivers_context/wgl_ctx.c
+++ b/gfx/drivers_context/wgl_ctx.c
@@ -661,7 +661,7 @@ static void *gfx_ctx_wgl_init(video_frame_info_t *video_info, void *video_driver
    win32_window_reset();
    win32_monitor_init();
 
-   wndclass.lpfnWndProc   = WndProcGL;
+   wndclass.lpfnWndProc   = WndProcWGL;
    if (!win32_window_init(&wndclass, true, NULL))
       goto error;