mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-03-13 15:21:36 -04:00
--Bug fixes
-Fix final render dialog failure when minimizing and restoring during a render on Linux. Note this bug was not present on Windows.
This commit is contained in:
parent
5aec58b4a2
commit
33cc2a4326
@ -636,7 +636,10 @@ void FractoriumFinalRenderDialog::OnCancelRenderClicked(bool checked)
|
|||||||
/// <param name="e">The event</param>
|
/// <param name="e">The event</param>
|
||||||
void FractoriumFinalRenderDialog::showEvent(QShowEvent* e)
|
void FractoriumFinalRenderDialog::showEvent(QShowEvent* e)
|
||||||
{
|
{
|
||||||
if (CreateControllerFromGUI(true))
|
if (m_Controller.get() && m_Controller->m_Run)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (CreateControllerFromGUI(true))//Create controller if it does not exist, or if it does and the renderer is not running.
|
||||||
{
|
{
|
||||||
int index = int(m_Fractorium->m_Controller->Index()) + 1;
|
int index = int(m_Fractorium->m_Controller->Index()) + 1;
|
||||||
#ifdef DO_DOUBLE
|
#ifdef DO_DOUBLE
|
||||||
|
@ -38,7 +38,7 @@ void FinalRenderEmberController<T>::CancelRender()
|
|||||||
m_Renderer->Abort();
|
m_Renderer->Abort();
|
||||||
|
|
||||||
while (m_Renderer->InRender())
|
while (m_Renderer->InRender())
|
||||||
QApplication::processEvents();
|
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||||
|
|
||||||
m_Renderer->EnterRender();
|
m_Renderer->EnterRender();
|
||||||
m_Renderer->EnterFinalAccum();
|
m_Renderer->EnterFinalAccum();
|
||||||
|
Loading…
Reference in New Issue
Block a user