Skip to content

Commit

Permalink
gapii: Fix type for ANativeWindowBuffer::layer_count.
Browse files Browse the repository at this point in the history
I have no excuses for why I got this wrong first time.

Fixes: google#1508
  • Loading branch information
ben-clayton committed Jan 15, 2018
1 parent d988a81 commit 1b47b81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gapii/cc/gles_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ std::shared_ptr<AndroidNativeBufferExtra> GlesSpy::GetAndroidNativeBufferExtra(C
int stride;
int format;
int usage;
int layer_count;
uintptr_t layer_count;
void* reserved;
void* handle;
void* reserved_proc[8];
Expand All @@ -544,7 +544,8 @@ std::shared_ptr<AndroidNativeBufferExtra> 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
Expand Down

0 comments on commit 1b47b81

Please sign in to comment.