Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anti-Aliasing on Render-To-Texture may yield "Internal Error" on iOS #2

Closed
PrimaryFeather opened this issue Jun 29, 2017 · 1 comment

Comments

@PrimaryFeather
Copy link
Contributor

Problem Description

When using anti-aliasing via the "context3D.setRenderToTexture()" method, subsequent calls to "context.createVertexBuffer" yield the error "Error #3672: Buffer creation failed. Internal error." on iOS.

This makes it impossible to use the new FragmentFilter.antiAliasing property introduced in Starling 2.2 on iOS.

This was reproduced in AIR 26, Build 112, and AIR 25, Build 134.
I run the app on iOS 10.3.2.

Adobe Tracker Issue: https://tracker.adobe.com/#/view/AIR-4198370

Steps to Reproduce

Use the following class as a Starling Root-Class (Starling 2.2) on iOS:
https://gist.github.com/anonymous/1c1480962f0723f9baaa63e7c8f51683

The code causes an exception in this line in FragmentFilter.as (effect.uploadVertexData). If you step into this method, you see that the actual exception occurs inside context.createVertexBuffer.

Known Workarounds

Set filter.resolution = 2 instead of filter.antiAliasing = 2.

@PrimaryFeather
Copy link
Contributor Author

Fixed with AIR 27.0.0.128!

This was referenced Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant