fixes to lwjgl renderer

This commit is contained in:
codeanticode
2015-01-12 14:38:25 -05:00
parent 4817c57655
commit 32240d2901
6 changed files with 36 additions and 38 deletions

View File

@@ -647,7 +647,7 @@ public class PJOGL extends PGL {
this.drawable = pjogl.drawable;
this.context = pjogl.context;
this.glContext = pjogl.glContext;
this.glThread = pjogl.glThread;
setThread(pjogl.glThread);
this.gl = pjogl.gl;
this.gl2 = pjogl.gl2;
@@ -659,7 +659,7 @@ public class PJOGL extends PGL {
protected void getGL(GLAutoDrawable glDrawable) {
context = glDrawable.getContext();
glContext = context.hashCode();
glThread = Thread.currentThread();
setThread(Thread.currentThread());
gl = context.getGL();
gl2 = gl.getGL2ES2();