The rationale here is, that this line would create an instance of gl_renderer_interface in every compilation unit that included gl-renderer.h. This is not necessary, and it can actually be harmful by masking the real exported gl_renderer_interface symbol, if you added another compilation unit to gl-renderer.so, causing a runtime failure in loading it. gl-renderer.c already creates the exported symbol.dev
parent
cb0e3579af
commit
791324cc06
Loading…
Reference in new issue