compression-off problems

I am using

compressed-textures 1

But on some key textures i disable compression:

texture.setCompression(texture.CMOff)

But looks like this broke in the recent version and no longer works. So all textures end up compressed.

Really? This sounds serious. This could also explain why some users are having troubles running some of the samples in OpenGL mode–if all textures are ending up compressed, including render-to-texture buffers, it gives some drivers troubles.

David

Ah, it’s not as bad as I thought. The problem is just that it doesn’t automatically dump the ram image when you change the compression mode. This is arguably a bug, but there’s a simple workaround:

texture.setCompression(texture.CMOff)
texture.reload()

Another simple workaround is to load the texture via an egg file that specifies the proper compression mode in the first place, rather than changing it at runtime.

David

thanks! This will solve it.