mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
gl_engine GlRenderer: Fix build error
Change id() to identifier(). error log ``` ../src/lib/gl_engine/tvgGlRenderer.cpp:333:19: error: ‘const class tvg::Fill’ has no member named ‘id’ 333 | switch (fill->id()) { ```
This commit is contained in:
parent
99da490ef7
commit
a5f5cd6d98
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ void GlRenderer::drawPrimitive(GlShape& sdata, const Fill* fill, uint32_t primit
|
|||
auto size = sdata.geometry->getPrimitiveSize(primitiveIndex);
|
||||
auto matrix = sdata.geometry->getTransforMatrix();
|
||||
|
||||
switch (fill->id()) {
|
||||
switch (fill->identifier()) {
|
||||
case TVG_CLASS_ID_LINEAR: {
|
||||
float x1, y1, x2, y2;
|
||||
GlLinearGradientRenderTask *renderTask = static_cast<GlLinearGradientRenderTask*>(mRenderTasks[GlRenderTask::RenderTypes::RT_LinGradient].get());
|
||||
|
|
Loading…
Add table
Reference in a new issue