Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
46bc42e7
Commit
46bc42e7
authored
Mar 29, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Simplify wine_vk_init().
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc1b15f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vulkan.c
dlls/winevulkan/vulkan.c
+5
-5
No files found.
dlls/winevulkan/vulkan.c
View file @
46bc42e7
...
...
@@ -47,7 +47,7 @@ struct wine_vk_structure_header
static
void
*
wine_vk_get_global_proc_addr
(
const
char
*
name
);
static
const
struct
vulkan_funcs
*
vk_funcs
=
NULL
;
static
const
struct
vulkan_funcs
*
vk_funcs
;
static
void
wine_vk_physical_device_free
(
struct
VkPhysicalDevice_T
*
phys_dev
)
{
...
...
@@ -261,17 +261,17 @@ static void wine_vk_device_free(struct VkDevice_T *device)
static
BOOL
wine_vk_init
(
void
)
{
HDC
hdc
=
GetDC
(
0
)
;
HDC
hdc
;
vk_funcs
=
__wine_get_vulkan_driver
(
hdc
,
WINE_VULKAN_DRIVER_VERSION
);
hdc
=
GetDC
(
0
);
vk_funcs
=
__wine_get_vulkan_driver
(
hdc
,
WINE_VULKAN_DRIVER_VERSION
);
ReleaseDC
(
0
,
hdc
);
if
(
!
vk_funcs
)
{
ERR
(
"Failed to load Wine graphics driver supporting Vulkan.
\n
"
);
ReleaseDC
(
0
,
hdc
);
return
FALSE
;
}
ReleaseDC
(
0
,
hdc
);
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment