daily update on 20231016 by nitload youmu, vao,vbo,ebo struct added

This commit is contained in:
Nitload
2023-10-17 01:22:30 +08:00
parent 6c3349f5a2
commit 614fabe26c
135 changed files with 28619 additions and 5432 deletions
+2 -4
View File
@@ -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;
}