From 4292c9ed7735ef85489ba907ec4728a5a67ad04c Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Mon, 27 Jun 2022 16:30:16 +0200 Subject: [PATCH] Convert preprocessor `#define` to `constexpr int` --- src/engine/client/graphics_threaded.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/graphics_threaded.h b/src/engine/client/graphics_threaded.h index fb2e15dc1..fc47211d0 100644 --- a/src/engine/client/graphics_threaded.h +++ b/src/engine/client/graphics_threaded.h @@ -7,8 +7,8 @@ #include #include -#define CMD_BUFFER_DATA_BUFFER_SIZE 1024 * 1024 * 2 -#define CMD_BUFFER_CMD_BUFFER_SIZE 1024 * 256 +constexpr int CMD_BUFFER_DATA_BUFFER_SIZE = 1024 * 1024 * 2; +constexpr int CMD_BUFFER_CMD_BUFFER_SIZE = 1024 * 256; class CCommandBuffer {