Commit d9019838 by Jamie Madill

Fix cast warning in UniformsPerf.cpp.

BUG=None Change-Id: I28af0d2be5ef545e78b8283d43d14078c0d1b62a Reviewed-on: https://chromium-review.googlesource.com/422491Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 0c7baf1b
......@@ -145,8 +145,10 @@ void UniformsBenchmark::initializeBenchmark()
bool isMatrix = params.dataType == DataType::MAT4;
GLint numVertexUniformVectors = params.numVertexUniforms * (isMatrix ? 4 : 1);
GLint numFragmentUniformVectors = params.numFragmentUniforms * (isMatrix ? 4 : 1);
GLint numVertexUniformVectors =
static_cast<GLint>(params.numVertexUniforms) * (isMatrix ? 4 : 1);
GLint numFragmentUniformVectors =
static_cast<GLint>(params.numFragmentUniforms) * (isMatrix ? 4 : 1);
if (numVertexUniformVectors > maxVertexUniformVectors)
{
......
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