[Branch,~glmark2-dev/glmark2/trunk] Rev 112: Open 3ds model files in r...

My dashboard
Submitter alexandros.frantzis@linaro.org
Subject [Branch,~glmark2-dev/glmark2/trunk] Rev 112: Open 3ds model files in read-only mode.
Date July 19, 2011, 1:47 p.m.
List thread <20110719134722.13156.99685.launchpad@loganberry.canonical.com>
Project glmark2
State Accepted
Last updated July 19, 2011, 1:47 p.m.
Headers show

Comments

noreply@launchpad.net - July 19, 2011, 1:47 p.m.
------------------------------------------------------------
revno: 112
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Tue 2011-07-19 16:42:53 +0300
message:
  Open 3ds model files in read-only mode.
modified:
  src/model.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription

Patch

=== modified file 'src/model.cpp'
--- src/model.cpp	2011-07-12 18:22:45 +0000
+++ src/model.cpp	2011-07-19 13:42:53 +0000
@@ -164,7 +164,7 @@ 
 
     Log::debug("Loading model from 3ds file '%s'\n", filename.c_str());
 
-    std::fstream input_file(filename.c_str());
+    std::ifstream input_file(filename.c_str());
     if (!input_file) {
         Log::error("Could not open 3ds file '%s'\n", filename.c_str());
         return false;