aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-29 17:06:48 -0500
committerDavid Robillard <d@drobilla.net>2023-01-29 17:06:48 -0500
commita25ec0a88eb00b73687b9e64a318581169835845 (patch)
tree73b278b3774a089250296f82a7a809fecbf7841d
parent8bdf159b6f741adaac2ec8bf7e250145902ed8df (diff)
downloadpugl-a25ec0a88eb00b73687b9e64a318581169835845.tar.gz
pugl-a25ec0a88eb00b73687b9e64a318581169835845.tar.bz2
pugl-a25ec0a88eb00b73687b9e64a318581169835845.zip
Fix pugl_shader_demo on Windows
-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;