Skip to content

Commit

Permalink
Update graphics.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Speak2Erase committed Dec 20, 2021
1 parent 7a5f223 commit 67fc115
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/graphics/source/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,20 @@ class ScreenScene : public Scene
{
pp.swapRender();

//if (!viewpRect.encloses(screenRect))
//{
// /* Scissor test _does_ affect FBO blit operations,
// * and since we're inside the draw cycle, it will
// * be turned on, so turn it off temporarily */
// glState.scissorTest.pushSet(false);

// GLMeta::blitBegin(pp.frontBuffer());
// GLMeta::blitSource(pp.backBuffer());
// GLMeta::blitRectangle(geometry.rect, Vec2i());
// GLMeta::blitEnd();

// glState.scissorTest.pop();
//}
if (!viewpRect.encloses(screenRect))
{
/* Scissor test _does_ affect FBO blit operations,
* and since we're inside the draw cycle, it will
* be turned on, so turn it off temporarily */
glState.scissorTest.pushSet(false);

GLMeta::blitBegin(pp.frontBuffer());
GLMeta::blitSource(pp.backBuffer());
GLMeta::blitRectangle(geometry.rect, Vec2i());
GLMeta::blitEnd();

glState.scissorTest.pop();
}

GrayShader &shader = shState->shaders().gray;
shader.bind();
Expand Down

0 comments on commit 67fc115

Please sign in to comment.