panic on shader error
parent
0f328384b2
commit
7e1980b73a
2
depot
2
depot
|
@ -1 +1 @@
|
||||||
Subproject commit 9a430a960a8e622a7b38fb314fa543a8f94399e4
|
Subproject commit 9acdca3091911bde31233252c19087afcec53b18
|
|
@ -594620,7 +594620,7 @@ GLuint shader_compile( GLenum type, const char *source ) {
|
||||||
|
|
||||||
// dump log with line numbers
|
// dump log with line numbers
|
||||||
shader_print( source );
|
shader_print( source );
|
||||||
PRINTF("!ERROR: shader_compile(): %s\n%s\n", type == GL_VERTEX_SHADER ? "Vertex" : "Fragment", buf);
|
PANIC("!ERROR: shader_compile(): %s\n%s\n", type == GL_VERTEX_SHADER ? "Vertex" : "Fragment", buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ GLuint shader_compile( GLenum type, const char *source ) {
|
||||||
|
|
||||||
// dump log with line numbers
|
// dump log with line numbers
|
||||||
shader_print( source );
|
shader_print( source );
|
||||||
PRINTF("!ERROR: shader_compile(): %s\n%s\n", type == GL_VERTEX_SHADER ? "Vertex" : "Fragment", buf);
|
PANIC("!ERROR: shader_compile(): %s\n%s\n", type == GL_VERTEX_SHADER ? "Vertex" : "Fragment", buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12789,7 +12789,7 @@ GLuint shader_compile( GLenum type, const char *source ) {
|
||||||
|
|
||||||
// dump log with line numbers
|
// dump log with line numbers
|
||||||
shader_print( source );
|
shader_print( source );
|
||||||
PRINTF("!ERROR: shader_compile(): %s\n%s\n", type == GL_VERTEX_SHADER ? "Vertex" : "Fragment", buf);
|
PANIC("!ERROR: shader_compile(): %s\n%s\n", type == GL_VERTEX_SHADER ? "Vertex" : "Fragment", buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue