From 1a10db565491d27d135cff898efec58e45cc306f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 19 May 2014 23:22:49 +0200 Subject: Texture/TextureIO: Make 'wrapping' Texture ctor public, remove same factory method from TextureIO --- src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/util/av') diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java index 63bb22d80..49c3c2a13 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java +++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java @@ -725,11 +725,8 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { gl.glTexParameteri(textureTarget, GL.GL_TEXTURE_WRAP_S, texWrapST[0]); gl.glTexParameteri(textureTarget, GL.GL_TEXTURE_WRAP_T, texWrapST[1]); - return com.jogamp.opengl.util.texture.TextureIO.newTexture( - texName, textureTarget, - tWidth, tHeight, - width, height, - !isInGLOrientation); + return new Texture(texName, textureTarget, + tWidth, tHeight, width, height, !isInGLOrientation); } protected void destroyTexFrame(GL gl, TextureFrame frame) { -- cgit v1.2.3