You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️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):
Device: sm-g991b/ds aka. Samsung Galaxy S21 5G
OS: Android 14
Additional context
n/a
The text was updated successfully, but these errors were encountered:
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:
filament/filament/src/details/Material.cpp
Line 200 in 99eac62
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
The text was updated successfully, but these errors were encountered: