Commit 5a654f5f by Geoff Lang Committed by Commit Bot

Fix reinterpret_cast size missmatch warning on 64-bit Windows.

Change-Id: I9c4b102c60abb90281f778833be9b1d5bfdcb8f1 Reviewed-on: https://chromium-review.googlesource.com/786110Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent e51ba63b
...@@ -1836,7 +1836,8 @@ gl::Error Renderer11::drawElementsIndirect(const gl::Context *context, ...@@ -1836,7 +1836,8 @@ gl::Error Renderer11::drawElementsIndirect(const gl::Context *context,
// TODO(jmadill): Fix const cast. // TODO(jmadill): Fix const cast.
const gl::Type &typeInfo = gl::GetTypeInfo(type); const gl::Type &typeInfo = gl::GetTypeInfo(type);
const void *indices = reinterpret_cast<const void *>(firstIndex * typeInfo.bytes); const void *indices =
reinterpret_cast<const void *>(static_cast<uintptr_t>(firstIndex * typeInfo.bytes));
gl::HasIndexRange lazyIndexRange(const_cast<gl::Context *>(context), count, type, indices); gl::HasIndexRange lazyIndexRange(const_cast<gl::Context *>(context), count, type, indices);
ANGLE_TRY( ANGLE_TRY(
......
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