mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 22:58:44 +00:00
gl_engine: fix compilation warning with RenderRegion data type
This commit is contained in:
parent
a27839e80a
commit
bd2ee236e7
1 changed files with 1 additions and 1 deletions
|
@ -985,7 +985,7 @@ bool GlRenderer::sync()
|
||||||
|
|
||||||
RenderRegion GlRenderer::region(RenderData data)
|
RenderRegion GlRenderer::region(RenderData data)
|
||||||
{
|
{
|
||||||
if (currentPass()->isEmpty()) return RenderRegion{0, 0, 0, 0};
|
if (currentPass()->isEmpty()) return {};
|
||||||
|
|
||||||
auto shape = reinterpret_cast<GlShape*>(data);
|
auto shape = reinterpret_cast<GlShape*>(data);
|
||||||
auto bounds = shape->geometry->getBounds();
|
auto bounds = shape->geometry->getBounds();
|
||||||
|
|
Loading…
Add table
Reference in a new issue