Skip to content

Commit

Permalink
fix crash issue due to the uninitialized (cocos2d#20457)
Browse files Browse the repository at this point in the history
  • Loading branch information
coulsonwang authored and khootmanTC committed Jun 10, 2020
1 parent 37b0f94 commit 3a2bd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/renderer/backend/opengl/CommandBufferGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class CommandBufferGL final : public CommandBuffer

GLint _defaultFBO = 0; // The value gets from glGetIntegerv, so need to use GLint
GLuint _currentFBO = 0;
BufferGL* _vertexBuffer;
BufferGL* _vertexBuffer = nullptr;
ProgramState* _programState = nullptr;
BufferGL* _indexBuffer = nullptr;
RenderPipelineGL* _renderPipeline = nullptr;
Expand Down

0 comments on commit 3a2bd84

Please sign in to comment.