From 31f983a480c2ef2f6879023130c3373b1a5dcb8f Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 22 Feb 2005 22:15:20 +0000 Subject: Fixed problem pointed out by user chrisDUPUIS on javagaming forums where GLJPanel.display() wasn't synchronous but should have been git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@231 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/GLJPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/java') diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java index 95e1161e1..d8c41e006 100644 --- a/src/net/java/games/jogl/GLJPanel.java +++ b/src/net/java/games/jogl/GLJPanel.java @@ -121,8 +121,8 @@ public final class GLJPanel extends JPanel implements GLDrawable { public void display() { if (EventQueue.isDispatchThread()) { - // Can't block this thread - repaint(); + // Want display() to be synchronous, so call paintImmediately() + paintImmediately(0, 0, getWidth(), getHeight()); } else { // Multithreaded redrawing of Swing components is not allowed, // so do everything on the event dispatch thread -- cgit v1.2.3