mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
gl_engine renderer: initialize member data in default.
static analizyer bothers us due to this. we'd rather initialize members for free of them. Change-Id: Ifa6ebffdfdcb31d2dd3a1d6b911226928f654e3f
This commit is contained in:
parent
a12f346425
commit
0b95e55e2f
1 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@
|
|||
class GlRenderer : public RenderMethod
|
||||
{
|
||||
public:
|
||||
Surface surface;
|
||||
Surface surface = {nullptr, 0, 0, 0};
|
||||
|
||||
void* prepare(const Shape& shape, void* data, const RenderTransform* transform, RenderUpdateFlag flags) override;
|
||||
bool dispose(const Shape& shape, void *data) override;
|
||||
|
@ -54,9 +54,9 @@ private:
|
|||
void initShaders();
|
||||
void drawPrimitive(GlGeometry& geometry, float r, float g, float b, float a, uint32_t primitiveIndex, RenderUpdateFlag flag);
|
||||
|
||||
unique_ptr<GlProgram> mColorProgram;
|
||||
int32_t mColorUniformLoc;
|
||||
uint32_t mVertexAttrLoc;
|
||||
unique_ptr<GlProgram> mColorProgram = nullptr;
|
||||
int32_t mColorUniformLoc = 0;
|
||||
uint32_t mVertexAttrLoc = 0;
|
||||
};
|
||||
|
||||
#endif /* _TVG_GL_RENDERER_H_ */
|
||||
|
|
Loading…
Add table
Reference in a new issue