mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Explicit cast when getting OpenGL program info log
This commit is contained in:
parent
17af5e27ac
commit
cf2a495e26
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ bool ShaderProgram::Load(
|
||||||
|
|
||||||
// Check for errors
|
// Check for errors
|
||||||
glGetProgramiv(p->id_, GL_LINK_STATUS, &glSuccess);
|
glGetProgramiv(p->id_, GL_LINK_STATUS, &glSuccess);
|
||||||
glGetProgramInfoLog(p->id_, kInfoLogBufSize, &logLength, infoLog);
|
glGetProgramInfoLog(
|
||||||
|
p->id_, kInfoLogBufSize, &logLength, static_cast<GLchar*>(infoLog));
|
||||||
if (!glSuccess)
|
if (!glSuccess)
|
||||||
{
|
{
|
||||||
logger_->error("Shader program link failed: {}", infoLog);
|
logger_->error("Shader program link failed: {}", infoLog);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue