summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2012-10-24 22:05:46 +0200
committerXerxes Rånby <[email protected]>2012-10-24 22:05:46 +0200
commit66d511dc4fbe99dab3c65ce8600c6f33a1cd59f4 (patch)
tree8d4091496f394909d474ffd8ceffbd729b7c22f9 /src
parente7cd1172e44b50049c6dc0bd45d3f9d73f7fe23d (diff)
Fix mark/reset bug in com/jogamp/openal/test/resources/ResourceLocation.java
This fix will re-enable the manual OpenALTest to work. java -cp gluegen-rt.jar:joal.jar:joal-test.jar com.jogamp.openal.test.manual.OpenALTest Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/openal/test/resources/ResourceLocation.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/com/jogamp/openal/test/resources/ResourceLocation.java b/src/test/com/jogamp/openal/test/resources/ResourceLocation.java
index f223644..cc9f29f 100644
--- a/src/test/com/jogamp/openal/test/resources/ResourceLocation.java
+++ b/src/test/com/jogamp/openal/test/resources/ResourceLocation.java
@@ -2,6 +2,7 @@
package com.jogamp.openal.test.resources;
import java.io.InputStream;
+import java.io.BufferedInputStream;
/** just a tag to locate the resources */
public class ResourceLocation {
@@ -23,7 +24,7 @@ public class ResourceLocation {
}
public static InputStream getInputStream(String fileName, boolean throwException) {
- InputStream stream = rl.getClass().getResourceAsStream(fileName);
+ InputStream stream = new BufferedInputStream(rl.getClass().getResourceAsStream(fileName));
if(throwException && null == stream) {
throw new RuntimeException("File '"+fileName+"' not found");
}