Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
9f16d10f
Commit
9f16d10f
authored
6 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-5651 Crashes on close from LLWindowWin32
parent
961d7933
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llwindow/llwindowwin32.cpp
+21
-8
21 additions, 8 deletions
indra/llwindow/llwindowwin32.cpp
with
21 additions
and
8 deletions
indra/llwindow/llwindowwin32.cpp
+
21
−
8
View file @
9f16d10f
...
...
@@ -754,7 +754,6 @@ void LLWindowWin32::close()
// Make sure cursor is visible and we haven't mangled the clipping state.
setMouseClipping
(
FALSE
);
showCursor
();
// Go back to screen mode written in the registry.
if
(
mFullscreen
)
...
...
@@ -762,9 +761,23 @@ void LLWindowWin32::close()
resetDisplayResolution
();
}
// Don't process events in our mainWindowProc any longer.
SetWindowLongPtr
(
mWindowHandle
,
GWLP_USERDATA
,
NULL
);
if
(
mCallbacks
)
{
mCallbacks
->
handleFocusLost
(
this
);
}
else
{
showCursor
();
}
// Clean up remaining GL state
LL_DEBUGS
(
"Window"
)
<<
"Shutting down GL"
<<
LL_ENDL
;
gGLManager
.
shutdownGL
();
if
(
gGLManager
.
mInited
)
{
LL_INFOS
(
"Window"
)
<<
"Cleaning up GL"
<<
LL_ENDL
;
gGLManager
.
shutdownGL
();
}
LL_DEBUGS
(
"Window"
)
<<
"Releasing Context"
<<
LL_ENDL
;
if
(
mhRC
)
...
...
@@ -785,16 +798,16 @@ void LLWindowWin32::close()
// Restore gamma to the system values.
restoreGamma
();
if
(
mhDC
&&
!
ReleaseDC
(
mWindowHandle
,
mhDC
)
)
if
(
mhDC
)
{
LL_WARNS
(
"Window"
)
<<
"Release of ghDC failed"
<<
LL_ENDL
;
if
(
!
ReleaseDC
(
mWindowHandle
,
mhDC
))
{
LL_WARNS
(
"Window"
)
<<
"Release of ghDC failed"
<<
LL_ENDL
;
}
mhDC
=
NULL
;
}
LL_DEBUGS
(
"Window"
)
<<
"Destroying Window"
<<
LL_ENDL
;
// Don't process events in our mainWindowProc any longer.
SetWindowLongPtr
(
mWindowHandle
,
GWLP_USERDATA
,
NULL
);
// Make sure we don't leave a blank toolbar button.
ShowWindow
(
mWindowHandle
,
SW_HIDE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment