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 2b034f0 commit 0be4116
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/include/cubos/core/gl/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<DebugDrawRequest> requests;

Expand Down

0 comments on commit 0be4116

Please sign in to comment.