summaryrefslogtreecommitdiff
path: root/servers/rendering/rendering_server_viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/rendering/rendering_server_viewport.h')
-rw-r--r--servers/rendering/rendering_server_viewport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/rendering/rendering_server_viewport.h b/servers/rendering/rendering_server_viewport.h
index 6950db6127..0b90646e4f 100644
--- a/servers/rendering/rendering_server_viewport.h
+++ b/servers/rendering/rendering_server_viewport.h
@@ -91,8 +91,9 @@ public:
int64_t stacking;
RID canvas;
bool operator<(const CanvasKey &p_canvas) const {
- if (stacking == p_canvas.stacking)
+ if (stacking == p_canvas.stacking) {
return canvas < p_canvas.canvas;
+ }
return stacking < p_canvas.stacking;
}
CanvasKey() {