Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a0428db8
Commit
a0428db8
authored
May 19, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
May 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vulkan-1/tests: Don't destroy device if it wasn't created.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ba7d543c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
vulkan.c
dlls/vulkan-1/tests/vulkan.c
+11
-9
No files found.
dlls/vulkan-1/tests/vulkan.c
View file @
a0428db8
...
...
@@ -455,7 +455,6 @@ static void test_null_hwnd(VkInstance vk_instance, VkPhysicalDevice vk_physical_
uint32_t
queue_family_index
;
VkPresentModeKHR
*
modes
;
VkSurfaceKHR
surface
;
VkDevice
vk_device
;
uint32_t
count
;
VkRect2D
rect
;
VkBool32
bval
;
...
...
@@ -506,6 +505,8 @@ static void test_null_hwnd(VkInstance vk_instance, VkPhysicalDevice vk_physical_
if
(
pvkGetPhysicalDevicePresentRectanglesKHR
)
{
VkDevice
vk_device
;
count
=
0
;
vr
=
pvkGetPhysicalDevicePresentRectanglesKHR
(
vk_physical_device
,
surface
,
&
count
,
NULL
);
ok
(
vr
==
VK_SUCCESS
,
"Got unexpected vr %d.
\n
"
,
vr
);
...
...
@@ -526,6 +527,15 @@ static void test_null_hwnd(VkInstance vk_instance, VkPhysicalDevice vk_physical_
vkDestroySurfaceKHR
(
vk_instance
,
surface
,
NULL
);
return
;
}
if
(
0
)
{
/* Causes access violation on Windows. */
vr
=
vkGetDeviceGroupSurfacePresentModesKHR
(
vk_device
,
surface
,
&
present_mode_flags
);
ok
(
vr
==
VK_SUCCESS
,
"Got unexpected vr %d.
\n
"
,
vr
);
}
vkDestroyDevice
(
vk_device
,
NULL
);
}
else
{
...
...
@@ -535,14 +545,6 @@ static void test_null_hwnd(VkInstance vk_instance, VkPhysicalDevice vk_physical_
win_skip
(
"pvkGetPhysicalDevicePresentRectanglesKHR is no available.
\n
"
);
}
if
(
0
)
{
/* Causes access violation on Windows. */
vr
=
vkGetDeviceGroupSurfacePresentModesKHR
(
vk_device
,
surface
,
&
present_mode_flags
);
ok
(
vr
==
VK_SUCCESS
,
"Got unexpected vr %d.
\n
"
,
vr
);
}
vkDestroyDevice
(
vk_device
,
NULL
);
vkDestroySurfaceKHR
(
vk_instance
,
surface
,
NULL
);
}
...
...
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