summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/win/app/salinst.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index f47e5d86e406..d55fa70921e0 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -147,25 +147,20 @@ void SalYieldMutex::release()
m_mutex.release();
else
{
- bool isRelease(1 == mnCount);
+ bool const isRelease(1 == mnCount);
if ( isRelease )
{
+ OpenGLContext::prepareForYield();
+
SalData* pSalData = GetSalData();
if ( pSalData->mnAppThreadId != nThreadId )
{
- OpenGLContext::prepareForYield();
-
// If we don't call these message, the Output from the
// Java clients doesn't come in the right order
GdiFlush();
- mnThreadId = 0;
- }
- else
- {
- mnThreadId = 0;
- OpenGLContext::prepareForYield();
}
+ mnThreadId = 0;
}
mnCount--;