Moved gl-context-of inside gl-listener. init resize display and dispose now get gl context as parameter instead of drawable.