Commit 7878c10f authored by Jan Möbius's avatar Jan Möbius
Browse files

Some warnings fixed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17555 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b4d1e800
......@@ -158,7 +158,9 @@ namespace GLSL {
case 3: glUniform3iv(location, 1, (GLint*)val.data()); break;
case 4: glUniform4iv(location, 1, (GLint*)val.data()); break;
default: std::cerr << "UniformPool::UniformVec : invalid size " << size << std::endl;
default:
std::cerr << "UniformPool::UniformVec : invalid size " << size << std::endl;
break;
}
}
else{
......@@ -168,7 +170,9 @@ namespace GLSL {
case 3: glUniform3fv(location, 1, val.data()); break;
case 4: glUniform4fv(location, 1, val.data()); break;
default: std::cerr << "UniformPool::UniformVec : invalid size " << size << std::endl;
default:
std::cerr << "UniformPool::UniformVec : invalid size " << size << std::endl;
break;
}
}
......@@ -203,7 +207,9 @@ namespace GLSL {
case 4: glUniformMatrix4fv(location, 1, transposed, val.data()); break;
default: std::cerr << "UniformPool::UniformMat : invalid size " << size << std::endl;
default:
std::cerr << "UniformPool::UniformMat : invalid size " << size << std::endl;
break;
}
checkGLError2(id.c_str());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment