Made AWTGLCanvas listen to its own component events
This commit is contained in:
parent
481ffb5f16
commit
821778c655
|
@ -150,6 +150,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener,
|
||||||
if (pixel_format == null)
|
if (pixel_format == null)
|
||||||
throw new NullPointerException("Pixel format must be non-null");
|
throw new NullPointerException("Pixel format must be non-null");
|
||||||
addHierarchyListener(this);
|
addHierarchyListener(this);
|
||||||
|
addComponentListener(this);
|
||||||
this.drawable = drawable;
|
this.drawable = drawable;
|
||||||
this.pixel_format = pixel_format;
|
this.pixel_format = pixel_format;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue