From 091f6795974581ec1e5cb4f3f01b550f5ee6bd1e Mon Sep 17 00:00:00 2001 From: Daid Date: Sun, 22 Sep 2024 15:50:59 +0200 Subject: [PATCH] Lets see if this fixes the CI issue --- src/graphics/renderTarget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/graphics/renderTarget.cpp b/src/graphics/renderTarget.cpp index 5622e47..228dd40 100644 --- a/src/graphics/renderTarget.cpp +++ b/src/graphics/renderTarget.cpp @@ -608,7 +608,7 @@ void RenderTarget::fillCircle(glm::vec2 center, float radius, glm::u8vec4 color) void RenderTarget::fillRect(const sp::Rect& rect, glm::u8vec4 color) { - if (vertex_data.size() >= std::numeric_limits::max() - 4) + if (vertex_data.size() >= std::numeric_limits::max() - 4U) finish(); auto n = vertex_data.size(); @@ -633,7 +633,7 @@ void RenderTarget::drawTexturedQuad(std::string_view texture, glm::u8vec4 color) { auto info = getTextureInfo(texture); - if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 4) + if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 4U) finish(); auto& uv_rect = info.uv_rect; @@ -758,7 +758,7 @@ void RenderTarget::drawText(sp::Rect rect, const sp::Font::PreparedFontString& p p2 += rect.position; p3 += rect.position; - if (vertex_data.size() >= std::numeric_limits::max() - 4) + if (vertex_data.size() >= std::numeric_limits::max() - 4U) finish(); auto n = vertex_data.size(); @@ -829,7 +829,7 @@ void RenderTarget::drawRotatedText(glm::vec2 center, float rotation, std::string glm::vec2 p2 = mat * glm::vec2{left, bottom} + center; glm::vec2 p3 = mat * glm::vec2{right, bottom} + center; - if (vertex_data.size() >= std::numeric_limits::max() - 4) + if (vertex_data.size() >= std::numeric_limits::max() - 4U) finish(); auto n = vertex_data.size(); @@ -862,7 +862,7 @@ void RenderTarget::drawStretched(sp::Rect rect, std::string_view texture, glm::u void RenderTarget::drawStretchedH(sp::Rect rect, std::string_view texture, glm::u8vec4 color) { auto info = getTextureInfo(texture); - if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 8) + if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 8U) finish(); auto& uv_rect = info.uv_rect; @@ -911,7 +911,7 @@ void RenderTarget::drawStretchedH(sp::Rect rect, std::string_view texture, glm:: void RenderTarget::drawStretchedV(sp::Rect rect, std::string_view texture, glm::u8vec4 color) { auto info = getTextureInfo(texture); - if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 8) + if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 8U) finish(); auto& uv_rect = info.uv_rect; @@ -960,7 +960,7 @@ void RenderTarget::drawStretchedV(sp::Rect rect, std::string_view texture, glm:: void RenderTarget::drawStretchedHV(sp::Rect rect, float corner_size, std::string_view texture, glm::u8vec4 color) { auto info = getTextureInfo(texture); - if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 16) + if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 16U) finish(); auto& uv_rect = info.uv_rect; @@ -1052,7 +1052,7 @@ void RenderTarget::drawStretchedHVClipped(sp::Rect rect, sp::Rect clip_rect, flo return; auto info = getTextureInfo(texture); - if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 16) + if (info.texture || vertex_data.size() >= std::numeric_limits::max() - 16U) finish(); const auto& uv_rect = info.uv_rect;