Permalink
Browse files

closed shader buffer reader on completion

  • Loading branch information...
1 parent fa417da commit 4ad537c42625bafc32405f0337ae21c604ac1333 @alihelmy committed Apr 22, 2012
@@ -108,6 +108,7 @@ private String readInShaderCodeFromShaderFile(String pathToShaderFile) {
shaderCodeBuffer.append(codeLine+"\n");
codeLine=bufferedReader.readLine();
}
+ bufferedReader.close();
return shaderCodeBuffer.toString();
} catch (IOException e) {
// TODO Auto-generated catch block
@@ -55,6 +55,7 @@ private static String readInShaderCodeFromShaderFile(String pathToShaderFile) {
shaderCodeBuffer.append(codeLine+"\n");
codeLine=bufferedReader.readLine();
}
+ bufferedReader.close();
return shaderCodeBuffer.toString();
} catch (IOException e) {
// TODO Auto-generated catch block

0 comments on commit 4ad537c

Please sign in to comment.