diff options
author | David Robillard <d@drobilla.net> | 2023-01-29 17:06:48 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-29 17:06:48 -0500 |
commit | a25ec0a88eb00b73687b9e64a318581169835845 (patch) | |
tree | 73b278b3774a089250296f82a7a809fecbf7841d /examples | |
parent | 8bdf159b6f741adaac2ec8bf7e250145902ed8df (diff) | |
download | pugl-a25ec0a88eb00b73687b9e64a318581169835845.tar.gz pugl-a25ec0a88eb00b73687b9e64a318581169835845.tar.bz2 pugl-a25ec0a88eb00b73687b9e64a318581169835845.zip |
Fix pugl_shader_demo on Windows
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_shader_demo.c | 2 |
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; |