Add uniform cache in pixel effect. Remove a compiler warning and debug output.

This commit is contained in:
vrld
2011-10-07 14:44:57 +02:00
parent 48137cd2e1
commit b0b9117721
3 changed files with 11 additions and 3 deletions
@@ -39,6 +39,9 @@ namespace opengl
GLuint _program;
std::string _code; // volatile and stuff
// uniform location buffer
std::map<std::string, GLint> _uniforms;
// texture unit pool for setting images
static std::map<std::string, GLint> _texture_unit_pool;
static GLint _current_texture_unit;