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:
Lynix
2012-12-25 12:26:40 +01:00
parent d63c12bbd5
commit c65e3d5def
6 changed files with 36 additions and 36 deletions

View File

@@ -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)
{