From 1b47b81e5ea33c6773b0ed3954f8f9224563d802 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Mon, 15 Jan 2018 16:52:05 +0000 Subject: [PATCH] gapii: Fix type for ANativeWindowBuffer::layer_count. I have no excuses for why I got this wrong first time. Fixes: #1508 --- gapii/cc/gles_extras.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gapii/cc/gles_extras.cpp b/gapii/cc/gles_extras.cpp index 0dd7ec4a3e..a94b9501f0 100644 --- a/gapii/cc/gles_extras.cpp +++ b/gapii/cc/gles_extras.cpp @@ -523,7 +523,7 @@ std::shared_ptr GlesSpy::GetAndroidNativeBufferExtra(C int stride; int format; int usage; - int layer_count; + uintptr_t layer_count; void* reserved; void* handle; void* reserved_proc[8]; @@ -544,7 +544,8 @@ std::shared_ptr GlesSpy::GetAndroidNativeBufferExtra(C buffer->usage, buffer->layer_count )); - GAPID_DEBUG("Created AndroidNativeBufferExtra: width=%i, height=%i", buffer->width, buffer->height); + GAPID_INFO("Created AndroidNativeBufferExtra: width=%i, height=%i, layers=%llx", + buffer->width, buffer->height, (uint64_t)buffer->layer_count); observer->encodeAndDelete(extra->toProto()); return extra; #else