Enhancements to breadcrumb trail
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
int create_shader(const char *filename, int shadertype) {
|
||||
FILE* fp = fopen(filename, "r");
|
||||
if (!fp) {
|
||||
printf("failed to open vertex shader!\n");
|
||||
printf("failed to open shader file %s!\n", filename);
|
||||
return -1;
|
||||
}
|
||||
fseek(fp, 0L, SEEK_END);
|
||||
@@ -18,7 +18,7 @@ int create_shader(const char *filename, int shadertype) {
|
||||
|
||||
char *buffer = (char *)calloc(sizeof(char), buffer_sz + 1);
|
||||
if (fread(buffer, buffer_sz, 1, fp) != 1) {
|
||||
printf("failed to read vertex shader!\n");
|
||||
printf("failed to read shader file %s!\n", filename);
|
||||
return -1;
|
||||
}
|
||||
fclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user