Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@chinmaygarde
Copy link
Member

We would bind the texture target as either a 2D or Cube type but only set
parameters such as min/mag filters and wrap modes on the 2D target. This fixes
the rendering the Impeller showcase with the OpenGL backend.

Fixes flutter/flutter#104786
Screen Shot 2022-06-07 at 5 59 53 PM

We would bind the texture target as either a 2D or Cube type but only set
parameters such as min/mag filters and wrap modes on the 2D target. This fixes
the rendering the Impeller showcase with the OpenGL backend.

Fixes flutter/flutter#104786
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@bdero
Copy link
Member

bdero commented Jun 8, 2022

Doh! How did you end up working it out? Just taking another look around? This issue had me scratching my head last week.

@chinmaygarde
Copy link
Member Author

Took a look at the test in Angle that sets up a cube texture. It's a nice reduced test case that fits in one screenful of code. Then just made sure we were doing similar things. Since there were no GL, ASAN, MSAN errors, figured it was just user error.

@chinmaygarde chinmaygarde merged commit 6809925 into flutter:main Jun 8, 2022
@chinmaygarde chinmaygarde deleted the impeller_cube branch June 8, 2022 02:27
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
houhuayong pushed a commit to houhuayong/engine that referenced this pull request Jun 21, 2022
…utter#33893)

We would bind the texture target as either a 2D or Cube type but only set
parameters such as min/mag filters and wrap modes on the 2D target. This fixes
the rendering the Impeller showcase with the OpenGL backend.

Fixes flutter/flutter#104786
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

[Impeller] Cube map texture contents cannot be set in the OpenGL ES backend.

3 participants