diff options
author | jada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2005-10-20 19:59:00 +0000 |
---|---|---|
committer | jada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2005-10-20 19:59:00 +0000 |
commit | e63928ebbdc63d6da0c6f0b8fae47a6e8a75e859 (patch) | |
tree | 89fd52b91a55459e843ebc9743fb995e633447a0 /src/GLSLShaderTest/SphereGLSL.java | |
parent | 89e00ae88793b815256cf1ec371d4dd4000f020a (diff) |
1) No exit when exception is encountered.
2) Added new GLSL shader example program.
Diffstat (limited to 'src/GLSLShaderTest/SphereGLSL.java')
-rw-r--r-- | src/GLSLShaderTest/SphereGLSL.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/GLSLShaderTest/SphereGLSL.java b/src/GLSLShaderTest/SphereGLSL.java index 87d589e..a96dca6 100644 --- a/src/GLSLShaderTest/SphereGLSL.java +++ b/src/GLSLShaderTest/SphereGLSL.java @@ -114,11 +114,7 @@ public class SphereGLSL extends Applet { fragmentProgram = StringIO.readFully("./simple.frag"); } catch (IOException e) { - /* - e.printStackTrace(); - System.exit(1); - */ - System.err.println(e); + throw new RuntimeException(e); } Shader[] shaders = new Shader[2]; shaders[0] = new SourceCodeShader(Shader.SHADING_LANGUAGE_GLSL, |