axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
922 stars 205 forks source link

checkReallySupportsASTC does not work on ios device #2078

Closed BIGCATDOG closed 3 months ago

BIGCATDOG commented 3 months ago
  1. glReadPixels always get black pixel so that checkReallySupportsASTC return false.
halx99 commented 3 months ago

by default ios use metal render backend, not GLES, do you means GLES? if so that should really means ios GLES render not support ASTC

BIGCATDOG commented 3 months ago

yes, i use GLES render backend.

BIGCATDOG commented 3 months ago

And it works perfect on android device. It is strange.

BIGCATDOG commented 3 months ago

@halx99 If i just hard code to make check function return true. Everything works well. ASTC texture can be rendered on screen on ios device.

halx99 commented 3 months ago

should fixed by commits in branch https://github.com/axmolengine/axmol/tree/release-2.1.5

BIGCATDOG commented 3 months ago

should fixed by commits in branch https://github.com/axmolengine/axmol/tree/release-2.1.5 It is very appreciated. Thanks for your hard work.