Fix some warnings

This commit is contained in:
SirLynix
2023-06-27 19:31:24 +02:00
parent b01ee18eaf
commit 96618cbb5b
11 changed files with 28 additions and 23 deletions

View File

@@ -151,7 +151,7 @@ int main()
GLint dataSize;
program.GetActiveUniformBlock(blockIndex, GL_UNIFORM_BLOCK_DATA_SIZE, &dataSize);
if (fieldOffsets.GetAlignedSize() != dataSize)
if (fieldOffsets.GetAlignedSize() != std::size_t(dataSize))
std::cout << "size mismatch (computed " << fieldOffsets.GetAlignedSize() << ", reference has " << dataSize << ")" << std::endl;;
if (computedOffsets.size() != uniformIndices.size())