mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-29 17:08:56 +08:00
zero out opengl error log buffers
This commit is contained in:
parent
23db192296
commit
9096ed79a7
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user