提交 8880a9e8 编写于 作者: P Palana

check for link status instead of validate status

上级 ebc78eee
......@@ -214,7 +214,7 @@ static bool gl_shader_init(struct gs_shader *shader,
blog(LOG_DEBUG, "%s", glsp->gl_string.array);
blog(LOG_DEBUG, "+++++++++++++++++++++++++++++++++++");
glGetProgramiv(shader->program, GL_VALIDATE_STATUS, &compiled);
glGetProgramiv(shader->program, GL_LINK_STATUS, &compiled);
if (!gl_success("glGetProgramiv"))
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册