Skip to content

Commit e6794ae

Browse files
committed
Fix JogAmp JOGL 2.x.x -> 2.3.2 API changes
Signed-off-by: Xerxes Rånby <xerxes@gudinna.com>
1 parent 109d8e1 commit e6794ae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/gov/nasa/worldwind/render/DrawContextImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ public final GLContext getGLContext()
171171

172172
public final int getDrawableHeight()
173173
{
174-
return this.getGLDrawable().getHeight();
174+
return this.getGLDrawable().getSurfaceHeight();
175175
}
176176

177177
public final int getDrawableWidth()
178178
{
179-
return this.getGLDrawable().getWidth();
179+
return this.getGLDrawable().getSurfaceWidth();
180180
}
181181

182182
public final GLDrawable getGLDrawable()

src/gov/nasa/worldwind/render/TextRenderer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,6 @@ public void run() {
19511951

19521952
@Override
19531953
public void dispose(GLAutoDrawable drawable) {
1954-
glu.destroy();
19551954
glu=null;
19561955
frame=null;
19571956
}

0 commit comments

Comments
 (0)