diff options
author | Kenneth Russel <[email protected]> | 2007-02-27 22:05:56 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-02-27 22:05:56 +0000 |
commit | 5e381f7ba415b92247742bd32c8650d0a778f07f (patch) | |
tree | 461cb857ad7d49efb84b82574ea8907a24417709 /src/classes/com/sun/opengl/impl | |
parent | f024046a2eadf8cc695ac74181893baa8913245c (diff) |
Fixed Issue 278: Fatal error when rendering text
Added code to restore current text drawing color when backing store is
resized. Fixed NullPointerException in RectanglePacker during deletion
if no backing store was allocated.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1156 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl')
-rwxr-xr-x | src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java b/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java index 6057f7bb9..3a77b3bd1 100755 --- a/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java +++ b/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java @@ -287,7 +287,8 @@ public class RectanglePacker { BackingStoreManager. This RectanglePacker may no longer be used after calling this method. */ public void dispose() { - manager.deleteBackingStore(backingStore); + if (backingStore != null) + manager.deleteBackingStore(backingStore); backingStore = null; levels = null; } |