/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
case 0x8C3A: // GL_R11F_G11F_B10F
{
- format = Dali::Pixel::RGB32F;
+ format = Dali::Pixel::R11G11B10F;
break;
}
case 0x8D7C: // GL_RGBA8UI
bool LoadCubeMapFromKtxFile(const std::string& path, CubeData& cubedata)
{
Dali::FileStream daliFileStream(path);
- FILE* fp(daliFileStream.GetFile());
+ FILE* fp(daliFileStream.GetFile());
if(!fp)
{
return false;
}
// Skip the key-values:
- if(fseek(fp, header.bytesOfKeyValueData, SEEK_CUR))
+ if(fseek(fp, (long int)(header.bytesOfKeyValueData), SEEK_CUR))
{
return false;
}