Commit 87b84e40 authored by ogg.k.ogg.k's avatar ogg.k.ogg.k
Browse files

early out when there's no overlay to draw

parent e4b13cbe
......@@ -125,6 +125,13 @@ public class KateOverlay extends Overlay
/* if the renderer is empty and the buffer is not a duplicate, we leave the
video alone */
if (!buf.duplicate && ret > 0) {
Debug.log(Debug.DEBUG, "Video frame is not a dupe and we have nothing to overlay.");
/* if the renderer isn't dirty and the image hasn't changed, we don't need
to do anything, as the result image would be the same */
if (buf.duplicate && !tr.isDirty()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment