void EnsureRenderTarget() { if (_renderToTexture == null && PVRSession.instance.ready) { pvrSizei size = PVRSession.instance.renderTargetSize; _renderToTexture = new RenderTexture(size.w, size.h, 24, RenderTextureFormat.Default); if (QualitySettings.antiAliasing > 0) { _renderToTexture.antiAliasing = QualitySettings.antiAliasing; } _camera.targetTexture = _renderToTexture; _renderToTexture.Create(); PVRSession.RegisterColorBuffer(_renderToTexture.GetNativeTexturePtr()); } }