summaryrefslogtreecommitdiff
path: root/shader.cpp
diff options
context:
space:
mode:
authorunknown <Atle@Gungnir.(none)>2012-01-29 14:27:28 +0100
committerunknown <Atle@Gungnir.(none)>2012-01-29 14:27:28 +0100
commitb019bcca81f8dd4a003e21b2af8afffe16ef3a70 (patch)
tree967c79bc693b4b78cd9a35c9a33f3147b18e695c /shader.cpp
parenteb53653dfcbbe325cee93368dd6585d68e41f43a (diff)
Fixed windows issues.sfml
Diffstat (limited to 'shader.cpp')
-rw-r--r--shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shader.cpp b/shader.cpp
index a0509ff..0ce3afc 100644
--- a/shader.cpp
+++ b/shader.cpp
@@ -13,7 +13,7 @@ static void gl_check_error(const char *msg) {
}
void GLBaseShader::shader_source(const char *filename) {
- std::ifstream inf(filename, std::ios_base::in);
+ std::ifstream inf(filename, std::ios_base::in | std::ios_base::binary);
if(!inf.is_open()) {
throw(std::runtime_error((boost::format("Failed to load shader from file %s") % filename).str()));
}