Fix small bugs in SourceLimitTest.java

This commit is contained in:
Elias Naur 2004-12-08 21:02:50 +00:00
parent 074af135eb
commit 3640f60f47
1 changed files with 4 additions and 2 deletions

View File

@ -75,6 +75,7 @@ public class SourceLimitTest extends BasicTest {
try { try {
CreateAllSources(); CreateAllSources();
} catch(OpenALException oale) { } catch(OpenALException oale) {
oale.printStackTrace();
} }
@ -82,6 +83,7 @@ public class SourceLimitTest extends BasicTest {
try { try {
CreateSourcesStep(); CreateSourcesStep();
} catch(Exception e) { } catch(Exception e) {
e.printStackTrace();
} }
//shutdown //shutdown
alExit(); alExit();
@ -122,7 +124,7 @@ public class SourceLimitTest extends BasicTest {
IntBuffer[] sources = new IntBuffer[sourcesToCreate]; IntBuffer[] sources = new IntBuffer[sourcesToCreate];
//create the sources //create the sources
for (int i = 0; i <= sourcesToCreate; i++) { for (int i = 0; i < sourcesToCreate; i++) {
sources[i] = BufferUtils.createIntBuffer(1); sources[i] = BufferUtils.createIntBuffer(1);
sources[i].position(0).limit(1); sources[i].position(0).limit(1);
AL10.alGenSources(sources[i]); AL10.alGenSources(sources[i]);