aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pugl_shader_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c
index 5cd9c7c..63a86ab 100644
--- a/examples/pugl_shader_demo.c
+++ b/examples/pugl_shader_demo.c
@@ -189,7 +189,7 @@ loadShader(const char* const programPath, const char* const name)
char* const path = resourcePath(programPath, name);
fprintf(stderr, "Loading shader %s\n", path);
- FILE* const file = fopen(path, "r");
+ FILE* const file = fopen(path, "rb");
if (!file) {
logError("Failed to open '%s'\n", path);
return NULL;