Added setUniform method to KRMat4, KRVector2, and KRVector3

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40130
This commit is contained in:
kearwood
2012-10-18 08:25:47 +00:00
parent 89b273f2ce
commit 6358f7fcb9
5 changed files with 14 additions and 1 deletions

View File

@@ -293,5 +293,5 @@ bool KRVector3::operator <(const KRVector3& b) const
void KRVector3::setUniform(GLint location) const
{
GLDEBUG(glUniform3f(location, x, y, z));
if(location != -1) GLDEBUG(glUniform3f(location, x, y, z));
}