refactor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class Framebuffer;
|
||||
class DrawContext {
|
||||
const DrawContext* parent;
|
||||
Viewport viewport;
|
||||
Batch2D* const g2d;
|
||||
Batch2D* g2d;
|
||||
Flushable* flushable = nullptr;
|
||||
Framebuffer* fbo = nullptr;
|
||||
bool depthMask = true;
|
||||
|
||||
Reference in New Issue
Block a user