mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
bb706ca93a
commit
90d2b93731
2 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue