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:
JunsuChoi 2022-01-18 19:08:20 +09:00 committed by Hermet Park
parent 99da490ef7
commit a5f5cd6d98

View file

@ -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());