From 721b4dd6b19612b373d11a4f8f760f6beddec2ce Mon Sep 17 00:00:00 2001 From: Ricardo Antunes Date: Fri, 1 Mar 2024 18:40:22 +0000 Subject: [PATCH] fix(rendering): do not define two static vars in one line Due to a bug in MSVC this is flagged as C2487 --- core/include/cubos/core/gl/debug.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/include/cubos/core/gl/debug.hpp b/core/include/cubos/core/gl/debug.hpp index b09f0de665..3be11958e8 100644 --- a/core/include/cubos/core/gl/debug.hpp +++ b/core/include/cubos/core/gl/debug.hpp @@ -95,11 +95,14 @@ namespace cubos::core::gl static gl::RenderDevice* renderDevice; static gl::ConstantBuffer mvpBuffer; - static gl::ShaderBindingPoint mvpBindingPoint, colorBindingPoint; + static gl::ShaderBindingPoint mvpBindingPoint; + static gl::ShaderBindingPoint colorBindingPoint; static gl::ShaderPipeline pipeline; - static gl::RasterState fillRasterState, wireframeRasterState; - static DebugDrawObject objCube, objSphere; + static gl::RasterState fillRasterState; + static gl::RasterState wireframeRasterState; + static DebugDrawObject objCube; + static DebugDrawObject objSphere; static std::list requests;