OSDN Git Service

[fixed] issue 646, Texture#invalidateAllTextures sets filters and wrap properly when...
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Sat, 7 Jan 2012 13:56:41 +0000 (13:56 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Sat, 7 Jan 2012 13:56:41 +0000 (13:56 +0000)
gdx/src/com/badlogic/gdx/graphics/Texture.java

index 5425165..e52aa8d 100644 (file)
@@ -384,6 +384,11 @@ public class Texture implements Disposable {
                                        // well as a callback that sets the ref count.\r
                                        TextureParameter params = new TextureParameter();\r
                                        params.textureData = texture.getTextureData();\r
+                                       params.minFilter = texture.getMinFilter();\r
+                                       params.magFilter = texture.getMagFilter();\r
+                                       params.wrapU = texture.getUWrap();\r
+                                       params.wrapV = texture.getVWrap();\r
+                                       params.genMipMaps = texture.data.useMipMaps(); //not sure about this?\r
                                        params.texture = texture; // special parameter which will ensure that the references stay the same.\r
                                        params.loadedCallback = new LoadedCallback() {\r
                                                @Override\r