Skip to content
Browse files

moving Util to tests

  • Loading branch information...
1 parent a626f23 commit 8129c9e49e8d8c0be271423b5bb7570adf007ebf @mattdesl committed Dec 7, 2012
View
8 src/mdesl/graphics/glutils/ShaderProgram.java
@@ -78,7 +78,7 @@
import java.util.HashMap;
import java.util.List;
-import mdesl.util.Util;
+import mdesl.test.Util;
import org.lwjgl.BufferUtils;
import org.lwjgl.LWJGLException;
@@ -209,8 +209,10 @@ public ShaderProgram(String vertexShaderSource, String fragShaderSource,
release();
throw e;
}
- if (log != null && log.length() != 0)
- Util.warn(log);
+ //TODO: for convenience it might be nice to warn non-critical errors in a log
+ //but ideally the user should do that himself
+// if (log != null && log.length() != 0)
+// Util.warn(log);
}
/** Creates a new shader program with the given vertex and fragment shader
View
1 test/mdesl/test/SpriteBatchExample.java
@@ -34,7 +34,6 @@
import mdesl.graphics.SpriteBatch;
import mdesl.graphics.Texture;
-import mdesl.util.Util;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
View
1 test/mdesl/test/TextureBlendTest.java
@@ -12,7 +12,6 @@
import mdesl.graphics.SpriteBatch;
import mdesl.graphics.Texture;
import mdesl.graphics.glutils.ShaderProgram;
-import mdesl.util.Util;
import org.lwjgl.LWJGLException;
import org.lwjgl.Sys;
View
2 src/mdesl/util/Util.java → test/mdesl/test/Util.java
@@ -1,4 +1,4 @@
-package mdesl.util;
+package mdesl.test;
import java.io.BufferedReader;
import java.io.File;
View
2 test/mdesl/test/shadertut/ShaderLesson1.java
@@ -7,7 +7,7 @@
import mdesl.graphics.glutils.ShaderProgram;
import mdesl.test.Game;
import mdesl.test.SimpleGame;
-import mdesl.util.Util;
+import mdesl.test.Util;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;

0 comments on commit 8129c9e

Please sign in to comment.
Something went wrong with that request. Please try again.