Remove redundant cast.

Change-Id: I3eb79be6a25abbaf0327458384e0e180d5b52ab5
This commit is contained in:
Mrozek, Michal 2018-07-19 14:26:04 +02:00 committed by sys_ocldev
parent 623314665b
commit 3817857276
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ Image *Image::createImageHw(Context *context, cl_mem_flags flags, size_t size, v
bool zeroCopy, GraphicsAllocation *graphicsAllocation,
bool isObjectRedescribed, bool createTiledImage, uint32_t baseMipLevel, uint32_t mipCount,
const SurfaceFormatInfo *surfaceFormatInfo) {
const auto device = castToObject<Context>(context)->getDevice(0);
const auto device = context->getDevice(0);
const auto &hwInfo = device->getHardwareInfo();
auto funcCreate = imageFactory[hwInfo.pPlatform->eRenderCoreFamily].createImageFunction;