Skip to content

Display Error on apple silicon when running editor #46328

@piiertho

Description

@piiertho

I saw that it was not really tested for now here but did not see if anyone already tested it.

Godot version:

Built from 3.2.3-stable in target debug for apple silicon.

OS/device including version:

MacOs BigSur 11.2, ARM.

Issue description:

When running in editor a working scene on other desktop platforms, got this logs and rendering is broken:

 drivers/gles3/shader_gles3.cpp:164 - SceneShaderGLES3: Vertex Program Compilation Failed:
ERROR: 0:471: Too many arguments to constructor of 'vec3'
ERROR: 0:471: Too many arguments to constructor of 'vec3'
ERROR: 0:471: Too many arguments to constructor of 'vec3'

 drivers/gles3/shader_gles3.cpp:347 - Method failed. Returning: __null
 drivers/gles3/shader_gles3.cpp:123 - Condition "!version" is true. Returned: false
 drivers/gles3/shader_gles3.h:389 - Condition "!version" is true. Returned: -1
 ...
ERROR: _display_error_with_code: SceneShaderGLES3: Vertex Program Compilation Failed:
ERROR: 0:471: Too many arguments to constructor of 'vec3'
ERROR: 0:471: Too many arguments to constructor of 'vec3'
ERROR: 0:471: Too many arguments to constructor of 'vec3'

   At: drivers/gles3/shader_gles3.cpp:164.
ERROR: get_current_version: Method failed. Returning: __null
   At: drivers/gles3/shader_gles3.cpp:347.
ERROR: bind: Condition "!version" is true. Returned: false
   At: drivers/gles3/shader_gles3.cpp:123.
ERROR: _get_uniform: Condition "!version" is true. Returned: -1
   At: drivers/gles3/shader_gles3.h:389.

Steps to reproduce:

Build engine for apple silicon and start editor.

Minimal reproduction project:

Small scene like this one in editor should trigger it: https://github.com/utopia-rise/godot-jvm/blob/master/harness/tests/Spatial.tscn

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions