https://bugs.kde.org/show_bug.cgi?id=475605

David Redondo <k...@david-redondo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/6b4018014c |ma/kwin/-/commit/c34aec1c7b
                   |a4dfe170d2ddab3873222acc3ed |ee25b822552df4cc873f827bf84
                   |cf0                         |892

--- Comment #40 from David Redondo <k...@david-redondo.de> ---
Git commit c34aec1c7bee25b822552df4cc873f827bf84892 by David Redondo.
Committed on 08/02/2024 at 13:53.
Pushed by davidre into branch 'Plasma/6.0'.

Guard against render time query failing

glGetQuery can fail (for example because of a context loss) in this
case the buffer stays unmodified. In this case this is zero resulting
in GLRenderTimeQuery::result() returning a negative value. Down the
line this leads to a negative duration in the RenderJournal and
RenderLoopPrivate::scheduleRepaint starting a timer with an amount
of milliseconds bigger than what an int can hold. This will not
actually start a timer but QTimer::isActive returns true resulting
in no futher repaints being scheduled.
FIXED-IN: 6.0


(cherry picked from commit 6b4018014ca4dfe170d2ddab3873222acc3edcf0)

M  +3    -0    src/opengl/glrendertimequery.cpp

https://invent.kde.org/plasma/kwin/-/commit/c34aec1c7bee25b822552df4cc873f827bf84892

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to