scissors fix
This commit is contained in:
@@ -15,6 +15,10 @@ GfxContext::GfxContext(
|
||||
{}
|
||||
|
||||
GfxContext::~GfxContext() {
|
||||
if (g2d) {
|
||||
g2d->flush();
|
||||
}
|
||||
|
||||
while (scissorsCount--) {
|
||||
Window::popScissor();
|
||||
}
|
||||
@@ -22,10 +26,6 @@ GfxContext::~GfxContext() {
|
||||
if (parent == nullptr)
|
||||
return;
|
||||
|
||||
if (g2d) {
|
||||
g2d->flush();
|
||||
}
|
||||
|
||||
if (fbo != parent->fbo) {
|
||||
if (fbo) {
|
||||
fbo->unbind();
|
||||
|
||||
Reference in New Issue
Block a user