mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
Merge branch 'main' into release-0.20
This commit is contained in:
commit
81bdd0c7e6
1 changed files with 4 additions and 4 deletions
|
|
@ -15,16 +15,16 @@ GfxContext::GfxContext(
|
||||||
{}
|
{}
|
||||||
|
|
||||||
GfxContext::~GfxContext() {
|
GfxContext::~GfxContext() {
|
||||||
|
if (g2d) {
|
||||||
|
g2d->flush();
|
||||||
|
}
|
||||||
|
|
||||||
while (scissorsCount--) {
|
while (scissorsCount--) {
|
||||||
Window::popScissor();
|
Window::popScissor();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parent == nullptr)
|
if (parent == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (g2d) {
|
|
||||||
g2d->flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fbo != parent->fbo) {
|
if (fbo != parent->fbo) {
|
||||||
if (fbo) {
|
if (fbo) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue