Skip to content

Commit

Permalink
Wrapped DebuggingFearLwjgl in LoggingFearGl
Browse files Browse the repository at this point in the history
  • Loading branch information
thehiflyer committed May 21, 2012
1 parent 6873043 commit b992ad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fearless-render-core/src/main/java/se/fearlessgames/fear/gl/DebuggingFearLwjgl.java 100644 → 100755
Expand Up @@ -11,8 +11,8 @@ public class DebuggingFearLwjgl implements InvocationHandler {
private final Logger logger = LoggerFactory.getLogger(getClass());
private final FearGl fearGl;

private DebuggingFearLwjgl() {
fearGl = new FearLwjgl();
private DebuggingFearLwjgl(FearLwjgl fearGl) {
this.fearGl = fearGl;
}


Expand All @@ -32,7 +32,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
return returnValue;
}

public static FearGl create() {
return (FearGl) Proxy.newProxyInstance(ClassLoader.getSystemClassLoader(), new Class<?>[]{FearGl.class}, new DebuggingFearLwjgl());
public static FearGl create(FearLwjgl fearGl) {
return (FearGl) Proxy.newProxyInstance(ClassLoader.getSystemClassLoader(), new Class<?>[]{FearGl.class}, new DebuggingFearLwjgl(fearGl));
}
}
Expand Up @@ -49,7 +49,7 @@ public ExampleBase(int width, int height, String vertexShaderFile, String fragme
this.vertexShaderFile = vertexShaderFile;
this.fragmentShaderFile = fragmentShaderFile;

fearGl = LoggingFearGl.create(new FearLwjgl());
fearGl = LoggingFearGl.create(DebuggingFearLwjgl.create(new FearLwjgl()));

createDisplay();

Expand Down

0 comments on commit b992ad7

Please sign in to comment.