mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
gl_engine: fix wrong scissor value cause content not fully rendered
This commit is contained in:
parent
0552820c87
commit
51a69880fd
2 changed files with 2 additions and 1 deletions
|
@ -136,6 +136,7 @@ void GlBlitTask::run()
|
|||
{
|
||||
GlComposeTask::run();
|
||||
|
||||
GL_CHECK(glScissor(0, 0, mWidth, mHeight));
|
||||
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, getTargetFbo()));
|
||||
GL_CHECK(glBindFramebuffer(GL_READ_FRAMEBUFFER, getSelfFbo()));
|
||||
|
||||
|
|
|
@ -398,7 +398,7 @@ RenderData GlRenderer::prepare(const RenderShape& rshape, RenderData data, const
|
|||
|
||||
RenderRegion GlRenderer::viewport()
|
||||
{
|
||||
return {0, 0, INT32_MAX, INT32_MAX};
|
||||
return {0, 0, static_cast<int32_t>(surface.w), static_cast<int32_t>(surface.h)};
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue