daily update on 20231016 by nitload youmu, vao,vbo,ebo struct added
This commit is contained in:
@@ -43,8 +43,6 @@ SSGC_API unsigned int loadShaderCode(char* const shaderCode, GLint shadertype)
|
||||
if (!success)
|
||||
{
|
||||
glGetShaderInfoLog(shader, 512, NULL, infolog);
|
||||
infolog[511] = '\0';
|
||||
printf(infolog);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
@@ -62,7 +60,6 @@ SSGC_API unsigned int linkShaderProgram(GLuint shaderProgram)
|
||||
if (!success)
|
||||
{
|
||||
glGetProgramInfoLog(shaderProgram, 512, NULL, infolog);
|
||||
printf(infolog);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
@@ -74,5 +71,6 @@ SSGC_API unsigned int linkShaderProgram(GLuint shaderProgram)
|
||||
|
||||
char* _cdecl readLog()
|
||||
{
|
||||
return infolog[0];
|
||||
infolog[511] = '\0';
|
||||
return &infolog;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user