Skip to content

Commit

Permalink
fix(rendering): do not define two static vars in one line
Browse files Browse the repository at this point in the history
Due to a bug in MSVC this is flagged as C2487
  • Loading branch information
RiscadoA committed Mar 1, 2024
1 parent 5ada782 commit 2f8889b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/include/cubos/core/gl/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ 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 gl::RasterState fillRasterState;
static gl::RasterState wireframeRasterState;
static DebugDrawObject objCube, objSphere;

static std::list<DebugDrawRequest> requests;
Expand Down

0 comments on commit 2f8889b

Please sign in to comment.