feeble, miserable little attempt at emulating fog

This commit is contained in:
Arisotura
2019-05-25 04:28:00 +02:00
parent 04f1809dd1
commit 7cdeb7fa4e
3 changed files with 206 additions and 17 deletions

View File

@ -71,6 +71,10 @@ bool OpenGL_BuildShaderProgram(const char* vs, const char* fs, GLuint* ids, cons
//printf("shader source:\n--\n%s\n--\n", fs);
delete[] log;
FILE* logf = fopen("shaderfail.log", "w");
fwrite(fs, len+1, 1, logf);
fclose(logf);
glDeleteShader(ids[0]);
glDeleteShader(ids[1]);