Fixed mode parameter

This commit is contained in:
Ioannis Tsakpinis 2005-06-07 10:33:17 +00:00
parent a7f0d596b3
commit e77c1807ce
1 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ public final class PbufferTest {
kill("Invalid mode.");
}
if ( mode < 1 || mode > 4 )
if ( mode != 1 && mode != 2 )
kill("Invalid mode.");
System.out.println("Change between fullscreen and windowed mode, by pressing F and W respectively");
@ -429,7 +429,7 @@ public final class PbufferTest {
System.out.println(msg);
System.out.println("-------");
System.out.println("Usage: java org.lwjgl.test.opengl.pbuffer.PbufferTest <mode>");
System.out.println("\n<mode>\tA number in the range 1-4.");
System.out.println("\n<mode>.");
System.out.println("\t1: no render-to-texture");
System.out.println("\t2: with render-to-texture");