This commit is contained in:
Branimir Karadžić 2014-02-24 21:47:00 -08:00
parent 6eee3cca63
commit a4e189a366

View file

@ -483,10 +483,10 @@ int _main_(int /*_argc*/, char** /*_argv*/)
uint16_t shadowMapSize = 512;
// Get renderer capabilities info.
//const bgfx::Caps* caps = bgfx::getCaps();
const bgfx::Caps* caps = bgfx::getCaps();
// Shadow samplers are supported at least partially supported if texture
// compare less equal feature is supported.
bool shadowSamplerSupported = false; //0 != (caps->supported & BGFX_CAPS_TEXTURE_COMPARE_LEQUAL);
bool shadowSamplerSupported = 0 != (caps->supported & BGFX_CAPS_TEXTURE_COMPARE_LEQUAL);
bgfx::ProgramHandle progShadow;
bgfx::ProgramHandle progMesh;