Allow for zero-byte in shader log.

This commit is contained in:
Themaister 2013-05-12 02:07:17 +02:00
parent 763cb643fc
commit 82de806a81

View File

@ -25,7 +25,7 @@ namespace GL
if (len > 0)
{
std::vector<char> buf(len);
std::vector<char> buf(len + 1);
GLsizei out_len;
SYM(glGetProgramInfoLog)(prog, len, &out_len, buf.data());
@ -53,7 +53,7 @@ namespace GL
if (len > 0)
{
std::vector<char> buf(len);
std::vector<char> buf(len + 1);
GLsizei out_len;
SYM(glGetShaderInfoLog)(shader, len, &out_len, buf.data());