Hello all!
I’m not very familiar with forums, and I’m not sure if I need to create a new topic for this or use some older topic.
I’m currently trying to make Jogl running with GNU Classpath and the Escher AWT peers, and I’ve found this patch is required in order to let our own backends to work (maybe other patches will be needed in the future, the implementation is currently pretty at the beginning).
I don’t know the side effects in other part of the code, but it seems that anything is running correctly. I signed the Sun SCA in case this is needed, as so did the company I work for.
I write the patch here as the forum software does not let me to attach the file:
— src/classes/javax/media/opengl/GLCanvas.java.orig 2008-04-16 16:40:22.000000000 +0200
+++ src/classes/javax/media/opengl/GLCanvas.java 2008-04-16 16:40:26.000000000 +0200
@@ -64,7 +64,7 @@
private GLDrawableHelper drawableHelper = new GLDrawableHelper();
private GLDrawable drawable;
- private GLContextImpl context;
- private GLContext context;
private boolean autoSwapBufferMode = true;
private boolean sendReshape = false;
@@ -115,7 +115,7 @@
chooser,
new AWTGraphicsDevice(device))));
drawable = GLDrawableFactory.getFactory().getGLDrawable(this, capabilities, chooser);
- context = (GLContextImpl) drawable.createContext(shareWith);
- context = drawable.createContext(shareWith);
context.setSynchronized(true);
}
Thanks,
Mario Torre