Skip to content

Commit 121f8e9

Browse files
authored
fix crash issue due to the uninitialized (cocos2d#20457)
1 parent 674bb71 commit 121f8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/renderer/backend/opengl/CommandBufferGL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class CommandBufferGL final : public CommandBuffer
196196

197197
GLint _defaultFBO = 0; // The value gets from glGetIntegerv, so need to use GLint
198198
GLuint _currentFBO = 0;
199-
BufferGL* _vertexBuffer;
199+
BufferGL* _vertexBuffer = nullptr;
200200
ProgramState* _programState = nullptr;
201201
BufferGL* _indexBuffer = nullptr;
202202
RenderPipelineGL* _renderPipeline = nullptr;

0 commit comments

Comments
 (0)