Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Force basic render loop
  • Loading branch information
adazem009 committed Jan 2, 2024
commit 230c53dab4dc08050da3e5a9655a10285e2b60e0
5 changes: 5 additions & 0 deletions src/targetpainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ TargetPainter::~TargetPainter()

void TargetPainter::paint(QNanoPainter *painter)
{
if (QThread::currentThread() != qApp->thread()) {
qFatal("Error: Rendering must happen in the GUI thread to work correctly. Please disable threaded render loop using qputenv(\"QSG_RENDER_LOOP\", \"basic\") before constructing your "
"application object.");
}

m_target->lockCostume();
double width = m_target->width();
double height = m_target->height();
Expand Down