Render texture not work on OS X

Hi guys,
I ’ have this simple code that take screenshot and render it to texture2D .

            RenderTexture rt = new RenderTexture(w, 128, 24);
            rt.antiAliasing = 8;
            screenShotCamera.targetTexture = rt;
            DestroyImmediate(screenShot);
            screenShot = new Texture2D(128, 128, TextureFormat.ARGB32, false);
            screenShotCamera.Render();
            RenderTexture.active = rt;
            screenShot.ReadPixels(new Rect((w-128)/2, 0, 128, 128), 0, 0);
            screenShotCamera.targetTexture = null;
            RenderTexture.active = null; // JC: added to avoid errors           
            screenShot.Apply();

this code work fine on Windows, but on OS X I get a texture completely white .

Any Ideas?
Thanks

Try to disable rendertexture antialiasing

rt.antiAliasing = 1;

Does it work?

1 Like

Thanks, mholub!!! , I can’t understand why antialias is a problem, but now works on osx!!.

I reported this a while ago:
http://fogbugz.unity3d.com/default.asp?681089_dfjplngfhk2eogue