mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
scissors fix
This commit is contained in:
parent
b36711593b
commit
23f8ab8a77
1 changed files with 4 additions and 4 deletions
|
|
@ -15,16 +15,16 @@ GfxContext::GfxContext(
|
|||
{}
|
||||
|
||||
GfxContext::~GfxContext() {
|
||||
if (g2d) {
|
||||
g2d->flush();
|
||||
}
|
||||
|
||||
while (scissorsCount--) {
|
||||
Window::popScissor();
|
||||
}
|
||||
|
||||
if (parent == nullptr)
|
||||
return;
|
||||
|
||||
if (g2d) {
|
||||
g2d->flush();
|
||||
}
|
||||
|
||||
if (fbo != parent->fbo) {
|
||||
if (fbo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue