Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
eb00dad0
Unverified
Commit
eb00dad0
authored
May 22, 2020
by
Rémi Verschelde
Committed by
GitHub
May 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38930 from GuidoRevers/fix_vulkan_win_segmentation_fault
Fix segmentation fault when loading project
parents
92394120
cf20c034
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
display_server_windows.cpp
platform/windows/display_server_windows.cpp
+12
-12
No files found.
platform/windows/display_server_windows.cpp
View file @
eb00dad0
...
...
@@ -3074,18 +3074,6 @@ DisplayServerWindows::~DisplayServerWindows() {
cursors_cache
.
clear
();
#if defined(VULKAN_ENABLED)
if
(
rendering_driver
==
"vulkan"
)
{
if
(
rendering_device_vulkan
)
{
rendering_device_vulkan
->
finalize
();
memdelete
(
rendering_device_vulkan
);
}
if
(
context_vulkan
)
memdelete
(
context_vulkan
);
}
#endif
if
(
user_proc
)
{
SetWindowLongPtr
(
windows
[
MAIN_WINDOW_ID
].
hWnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
user_proc
);
};
...
...
@@ -3102,4 +3090,16 @@ DisplayServerWindows::~DisplayServerWindows() {
}
DestroyWindow
(
windows
[
MAIN_WINDOW_ID
].
hWnd
);
}
#if defined(VULKAN_ENABLED)
if
(
rendering_driver
==
"vulkan"
)
{
if
(
rendering_device_vulkan
)
{
rendering_device_vulkan
->
finalize
();
memdelete
(
rendering_device_vulkan
);
}
if
(
context_vulkan
)
memdelete
(
context_vulkan
);
}
#endif
}
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