It is now possible to use const shaders
A non-constant shader is no longer required to bind or to send uniform Former-commit-id: 8fd7c03b65a2d9fcea69516c023fee034299148c
This commit is contained in:
@@ -30,7 +30,7 @@ NzMaterial::~NzMaterial()
|
||||
|
||||
void NzMaterial::Apply() const
|
||||
{
|
||||
NzShader* shader = NzRenderer::GetShader();
|
||||
const NzShader* shader = NzRenderer::GetShader();
|
||||
#if NAZARA_RENDERER_SAFE
|
||||
if (!shader)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user