From 9096ed79a7415551afcb00e5afd32e6703feecd8 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Wed, 16 Mar 2022 02:12:31 -0700 Subject: [PATCH] zero out opengl error log buffers --- src/internal/renderer_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/renderer_opengl.cpp b/src/internal/renderer_opengl.cpp index 18104bc..3e276a9 100644 --- a/src/internal/renderer_opengl.cpp +++ b/src/internal/renderer_opengl.cpp @@ -837,7 +837,7 @@ namespace Blah return; } - GLchar log[1024]; + GLchar log[1024] = { 0 }; GLsizei log_length = 0; GLuint vertex_shader = renderer->gl.CreateShader(GL_VERTEX_SHADER); @@ -901,7 +901,7 @@ namespace Blah GLsizei length; GLsizei size; GLenum type; - GLchar name[max_name_length + 1]; + GLchar name[max_name_length + 1] = { 0 }; renderer->gl.GetActiveUniform(id, i, max_name_length, &length, &size, &type, name); name[length] = '\0';