
Fix for https://github.com/bkaradzic/bgfx/issues/1227 . It gets texture slot from compiled shaders and maps it to Sampler uniform. So sampler uniform MUST be defined before using shader (shadowmap_simple has a bug with invalid uniform name).
Fix for https://github.com/bkaradzic/bgfx/issues/1227 . It gets texture slot from compiled shaders and maps it to Sampler uniform. So sampler uniform MUST be defined before using shader (shadowmap_simple has a bug with invalid uniform name).