Cast buffer width and height to int
GraphicBuffer::get{Width,Height} are going to start returning uint32_t
values soon, so add the cast now to avoid breaking the build later.
Change-Id: Ied33700fdf81e8aecbad95d66583818d15987b93
This commit is contained in:
@@ -97,8 +97,8 @@ void DeferredLayerUpdater::doUpdateTexImage() {
|
||||
sp<GraphicBuffer> buffer = mSurfaceTexture->getCurrentBuffer();
|
||||
if (buffer != NULL) {
|
||||
// force filtration if buffer size != layer size
|
||||
forceFilter = mWidth != buffer->getWidth()
|
||||
|| mHeight != buffer->getHeight();
|
||||
forceFilter = mWidth != static_cast<int>(buffer->getWidth())
|
||||
|| mHeight != static_cast<int>(buffer->getHeight());
|
||||
}
|
||||
|
||||
#if DEBUG_RENDERER
|
||||
|
||||
Reference in New Issue
Block a user