Skip to content

IOS 26 rendering problem (missing objects) #19088

@GeTechG

Description

@GeTechG

Cocos Creator version

3.8.7

System information

IOS 26, webgl1

Issue description

This is a issue that affects all the glitches I've noticed in iOS 26, and they're all related to rendering. I think they're all interconnected.
There are several different problems:

  1. Sprites with UIOpacity disappear when the orientation changes — this problem seems to be solved by updating parameters such as opacity after the orientation has changed.
  2. WebGL: INVALID_OPERATION: glDrawElements: Vertex buffer is not big enough for the draw call.
    I don't know exactly what causes it yet, but in my case, literally one Sprite caused the problem in the production code. If you hide it, everything is fine. I will try to recreate the test scene later, but I couldn't recreate it on a bare project.
    This has already been discussed on the forum, but it didn't work for me and the bug didn't show up. If you manage to recreate it on a blank project, please send it to us.

Relevant error log output

WebGL: INVALID_OPERATION: glDrawElements: Vertex buffer is not big enough for the draw call.

Steps to reproduce

The following option was suggested for the forum, but it did not reveal the problem for me:

Reproduction method:
Attach an image resource (or an atlas) to a UI node.  
Then, in the code, create two sprites, for example:

const node = new Node();
node.addComponent(Sprite).spriteFrame = this._atlas.getSpriteFrame("icon_0");
this.node.addChild(node);

After that, toggle the visibility of these two nodes in turns, for example:

let flag = false;
this.schedule(() => {
    flag = !flag;
    node_0.active = flag;
    node_1.active = !flag;
}, 0.2);

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageNeeds to be assigned by the team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions