From b702bd00f4e61e7ca1a6fd3da78de87c730e7503 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Tue, 28 Dec 2021 14:26:40 +0100 Subject: [PATCH] fixed casting size warning --- include/lol/buffers/VertexBuffer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/lol/buffers/VertexBuffer.hpp b/include/lol/buffers/VertexBuffer.hpp index ef87d74..aa5dde0 100644 --- a/include/lol/buffers/VertexBuffer.hpp +++ b/include/lol/buffers/VertexBuffer.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include namespace lol @@ -13,7 +14,7 @@ namespace lol int size; ///< Number of elements in this attribute Type type; ///< Type of the attribute bool normalized; ///< Whether the data is normalized - int offset; ///< Offset of the attribute into the vertex data + size_t offset; ///< Offset of the attribute into the vertex data /** * @brief Construct a new VertexAttribute