diff options
author | Julien Gouesse <[email protected]> | 2013-03-23 12:53:48 +0100 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2013-03-23 12:53:48 +0100 |
commit | 544fea9e6598ca10659fd035849065561be0c0ce (patch) | |
tree | 526e021888dae553183ee63856cce07c77543320 /ardor3d-jogl | |
parent | b2f28cbd770f770e994374ce3b91571c647fad5c (diff) |
Adds OpenGL-ES 2.0 support
Diffstat (limited to 'ardor3d-jogl')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java index e2bff71..f17c18b 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java @@ -47,9 +47,9 @@ import com.ardor3d.renderer.ContextCapabilities; import com.ardor3d.renderer.ContextManager; import com.ardor3d.renderer.RenderContext; import com.ardor3d.renderer.jogl.JoglRenderer; +import com.ardor3d.renderer.jogl.state.record.JoglRendererRecord; import com.ardor3d.renderer.state.RenderState.StateType; import com.ardor3d.renderer.state.TextureState; -import com.ardor3d.renderer.state.record.RendererRecord; import com.ardor3d.renderer.state.record.TextureRecord; import com.ardor3d.renderer.state.record.TextureStateRecord; import com.ardor3d.renderer.state.record.TextureUnitRecord; @@ -1146,7 +1146,8 @@ public class JoglTextureStateUtil { final boolean doTrans = !texture.getTextureMatrix().isIdentity(); // Now do them. - final RendererRecord matRecord = ContextManager.getCurrentContext().getRendererRecord(); + final JoglRendererRecord matRecord = (JoglRendererRecord) ContextManager.getCurrentContext() + .getRendererRecord(); if (doTrans) { checkAndSetUnit(unit, record, caps); JoglRendererUtil.switchMode(matRecord, GL.GL_TEXTURE); |