Commit 46d7932a by Olli Etuaho Committed by Jamie Madill

Fix MSVS x64 build

EGLAttrib can be a 64-bit type on some configurations, in which case it needs an explicit cast to be converted to EGLint. TEST=standalone MSVS 2015 x64 debug build Change-Id: I6b3e0ae705e8862e079e81e516d6bf99409732e7 Reviewed-on: https://chromium-review.googlesource.com/350411Reviewed-by: 's avatarOlli Etuaho <oetuaho@nvidia.com> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent afe93f65
......@@ -45,8 +45,8 @@ std::vector<EGLint> AttributeMap::toIntVector() const
std::vector<EGLint> ret;
for (const auto &pair : mAttributes)
{
ret.push_back(pair.first);
ret.push_back(pair.second);
ret.push_back(static_cast<EGLint>(pair.first));
ret.push_back(static_cast<EGLint>(pair.second));
}
ret.push_back(EGL_NONE);
......
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