From 0f3881822d9825a309a7928685041302a6ee751c Mon Sep 17 00:00:00 2001 From: hdL6c <107304850+istori1@users.noreply.github.com> Date: Sat, 6 Apr 2024 18:03:54 -0400 Subject: [PATCH] fix(linux/capture): fix logical comparison of texture size (#2349) 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 1dbc36bf00..2cd81dd451 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()); } }