From 7b7a06b63ff5149bddf12e3e5975ed1efbe7da39 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 4 May 2022 11:02:02 +1000 Subject: [PATCH] [client] fix invalid bitwise comparison --- client/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.c b/client/src/main.c index 4d8d8ea4..d931eab9 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -619,7 +619,7 @@ int main_frameThread(void * unused) lgrFormat.stride = frame->stride; lgrFormat.pitch = frame->pitch; - if (frame->flags && FRAME_FLAG_TRUNCATED) + if (frame->flags & FRAME_FLAG_TRUNCATED) { const float needed = ((frame->screenHeight * frame->pitch * 2) / 1048576.0f) + 10.0f;