From 7f795f0e1925d6a0f4e290cd94838168903ef142 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 1dbc36bf..2cd81dd4 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()); } }