Skip to content

Commit

Permalink
fix crash issue due to the uninitialized (#20457)
Browse files Browse the repository at this point in the history
  • Loading branch information
coulsonwang committed Jun 4, 2020
1 parent 674bb71 commit 121f8e9
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 121f8e9

Please sign in to comment.