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 Xrysnow committed Jun 21, 2020
1 parent 0e7862f commit 8bdaef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/renderer/backend/opengl/CommandBufferGL.h
Expand Up @@ -196,7 +196,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 8bdaef5

Please sign in to comment.