Rename D3DFMTCLImageFormat to D3DtoClFormatConversions

Change-Id: Ie2be88e628963dd071272b03049a4d7586a4d5a1
This commit is contained in:
Maciej Godek
2018-09-24 10:28:05 +02:00
committed by sys_ocldev
parent 5aae5a3d62
commit b8e9251eeb
3 changed files with 6 additions and 6 deletions

View File

@@ -711,14 +711,14 @@ cl_int CL_API_CALL clGetSupportedDX9MediaSurfaceFormatsINTEL(cl_context context,
}
cl_uint i = 0;
for (auto format : D3DSurface::D3DFMTCLImageFormat) {
for (auto format : D3DSurface::D3DtoClFormatConversions) {
if (i >= numEntries) {
break;
}
dx9Formats[i++] = format.first;
}
*numImageFormats = static_cast<cl_uint>(D3DSurface::D3DFMTCLImageFormat.size());
*numImageFormats = static_cast<cl_uint>(D3DSurface::D3DtoClFormatConversions.size());
return CL_SUCCESS;
}