Closed madebr closed 1 year ago
dethrace of current master fails with the following message:
dethrace
[PANIC] GetValidatedUniformLocation glGetUniformLocation(4, u_material_index_range) failed. Check the shader uniform names.
I think what's happening is that the opengl shader compiler optimizes away unused uniforms. Looking at the fragment shader, u_material_index_range is practically unused. https://github.com/dethrace-labs/dethrace/blob/6c0b26cc8d72c21d4152adee3328aa88a3c95363/src/harness/resources/3d_frag.glsl#L46
u_material_index_range
Reading this StackOverflow answer, it looks like this optimization is spec compliant.
Because it's unused anyway, I locally commented out https://github.com/dethrace-labs/dethrace/blob/6c0b26cc8d72c21d4152adee3328aa88a3c95363/src/harness/renderers/gl/gl_renderer.c#L162 and https://github.com/dethrace-labs/dethrace/blob/6c0b26cc8d72c21d4152adee3328aa88a3c95363/src/harness/renderers/gl/gl_renderer.c#L549
I have the same fatal error. Since smudge commit #1a0301b of april 14 2023. Hardware of 2013, Radeon 7xxx. Windows 7 x64 or Windows XP x86 same thing.
dethrace
of current master fails with the following message:I think what's happening is that the opengl shader compiler optimizes away unused uniforms. Looking at the fragment shader,
u_material_index_range
is practically unused. https://github.com/dethrace-labs/dethrace/blob/6c0b26cc8d72c21d4152adee3328aa88a3c95363/src/harness/resources/3d_frag.glsl#L46Reading this StackOverflow answer, it looks like this optimization is spec compliant.
Because it's unused anyway, I locally commented out https://github.com/dethrace-labs/dethrace/blob/6c0b26cc8d72c21d4152adee3328aa88a3c95363/src/harness/renderers/gl/gl_renderer.c#L162 and https://github.com/dethrace-labs/dethrace/blob/6c0b26cc8d72c21d4152adee3328aa88a3c95363/src/harness/renderers/gl/gl_renderer.c#L549