From 58f35fa44ef4a0306ea91e396182684d4f6208a5 Mon Sep 17 00:00:00 2001 From: hdL6c <107304850+istori1@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:58:16 -0400 Subject: [PATCH 1/2] Fix compiler warning --- src/platform/linux/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux/graphics.cpp b/src/platform/linux/graphics.cpp index 1dbc36bf00c..83b0c6dac69 100644 --- a/src/platform/linux/graphics.cpp +++ b/src/platform/linux/graphics.cpp @@ -39,7 +39,7 @@ namespace gl { } tex_t::~tex_t() { - if (!size() == 0) { + if (!(size()) == 0) { ctx.DeleteTextures(size(), begin()); } } From 724bebfe30dea3e7ad4b9c30fa02850236e90e52 Mon Sep 17 00:00:00 2001 From: hdL6c <107304850+istori1@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:28:38 -0400 Subject: [PATCH 2/2] apply suggestion Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> --- src/platform/linux/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux/graphics.cpp b/src/platform/linux/graphics.cpp index 83b0c6dac69..2cd81dd451e 100644 --- a/src/platform/linux/graphics.cpp +++ b/src/platform/linux/graphics.cpp @@ -39,7 +39,7 @@ namespace gl { } tex_t::~tex_t() { - if (!(size()) == 0) { + if (size() != 0) { ctx.DeleteTextures(size(), begin()); } }