wgl: Add a stw_dev getter

Data imports need to be marked __declspec(dllimport), so
just export a function instead of data.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed By: Bill Kristiansen <billkris@microsoft.com>

Acked-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12727>
This commit is contained in:
Jesse Natalie 2021-09-04 08:07:45 -07:00 committed by Marge Bot
parent bb706ca93a
commit 90d2b93731
2 changed files with 9 additions and 0 deletions

View file

@ -186,6 +186,12 @@ stw_init_screen(HDC hdc)
return stw_dev->screen != NULL;
}
struct stw_device *
stw_get_device(void)
{
return stw_dev;
}
boolean
stw_init_thread(void)
{

View file

@ -99,6 +99,9 @@ extern struct stw_device *stw_dev;
boolean
stw_init_screen(HDC hdc);
struct stw_device *
stw_get_device(void);
static inline struct stw_context *
stw_lookup_context_locked( DHGLRC dhglrc )
{