⚠️ Issues not using this template will be systematically closed.
Describe the bug
Using material.getName() or materialInstance.getName() always gives an empty value on filament release build, while on debug it returns the name.
I assume it's this line probably being completely optimised away in release mode:
Call getName() in debug and release and compare the output
Expected behavior
It should also return the name in release mode. We need the material name to select the right one from a complex model where guessing the index isn't really feasible.
Screenshots
n/a
Logs
n/a
Desktop (please complete the following information):
OS: Android
GPU: Mali-G78 MP14
Backend: OpenGL
Smartphone (please complete the following information):
⚠️ Issues not using this template will be systematically closed.
Describe the bug
Using
material.getName()
ormaterialInstance.getName()
always gives an empty value on filament release build, while on debug it returns the name. I assume it's this line probably being completely optimised away in release mode:https://github.com/google/filament/blob/99eac62b4e0f58b3beaf1d49effe76b6dfdecaae/filament/src/details/Material.cpp#L200
To Reproduce Steps to reproduce the behavior:
getName()
in debug and release and compare the outputExpected behavior
It should also return the name in release mode. We need the material name to select the right one from a complex model where guessing the index isn't really feasible.
Screenshots n/a
Logs n/a
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context n/a