mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51: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() {
|
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