This commit is contained in:
MihailRis
2024-12-09 01:12:41 +03:00
parent 5fe5c6b27a
commit 5ffc054d75
16 changed files with 212 additions and 126 deletions
+3
View File
@@ -92,6 +92,9 @@ DrawContext DrawContext::sub(Flushable* flushable) const {
ctx.parent = this;
ctx.flushable = flushable;
ctx.scissorsCount = 0;
if (auto batch2D = dynamic_cast<Batch2D*>(flushable)) {
ctx.g2d = batch2D;
}
return ctx;
}