上一篇文章已经搞清楚了直接原因。现在来看看QueryCanvas:
- @Override
- public void addNotify() {
- super.addNotify();
-
- nativeWindow = (JAWTWindow)NativeWindowFactory.getNativeWindow(this, awtConfig);
- nativeWindow.lockSurface();
- try {
- glDrawable = GLDrawableFactory.getFactory(profile).createGLDrawable(nativeWindow);
- }
- finally {
- nativeWindow.unlockSurface();
- }
-
- glDrawable.setRealized(true);
- }
- GLProfile.getName() line: 1200 [local variables unavailable]
- GLProfile.getImplName() line: 1217 [local variables unavailable]
- GLDrawableFactory.getFactory(GLProfile) line: 458
正确:GL2
错误:GLES1
现在问题是:GLProfile的产生。