Unbind explicitly if not using maps.

This commit is contained in:
Themaister 2013-05-12 14:47:01 +02:00
parent ac33a00a59
commit 010a852665

View File

@ -81,8 +81,13 @@ namespace GL
if (material.diffuse_map)
material.diffuse_map->bind(0);
else
Texture::unbind(0);
if (material.ambient_map)
material.ambient_map->bind(1);
else
Texture::unbind(1);
shader->use();