(2024-10-09, 2:01)Eugen Wrote: I just wonder why LeoCAD has no issues with colors, as it also uses Mesa.
As LDView might be uses different methods than LeoCAD, could be LeoCAD code in some way helps to workaround issue?
Or LeoCAD's GL render uses fully different Mesa's API calls than LDView's GL render?
I strongly suspect that LeoCAD's renderer is completely different from LDView's. One thing to keep in mind about LDView is that I originally wrote the renderer over 20 years ago, and it is based on OpenGL 1.x functionality. I'm guessing this is why a fundamental feature (glPushAttrib/glPopAttrib) could be completely broken and stay broken for years without anybody bothering to fix it. (Note: the Mesa bug report has an extremely compact example that demonstrates the bug.)