mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Fixed compiling with Visual Studio.
This commit is contained in:
@@ -1322,9 +1322,11 @@ Graphics::DisplayState::DisplayState()
|
|||||||
, scissorBox()
|
, scissorBox()
|
||||||
, font(nullptr)
|
, font(nullptr)
|
||||||
, shader(nullptr)
|
, shader(nullptr)
|
||||||
, colorMask{true, true, true, true}
|
|
||||||
, wireframe(false)
|
, wireframe(false)
|
||||||
{
|
{
|
||||||
|
// We should just directly initialize the array in the initializer list, but
|
||||||
|
// that feature of C++11 is broken in Visual Studio 2013...
|
||||||
|
colorMask[0] = colorMask[1] = colorMask[2] = colorMask[3] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Graphics::DisplayState::DisplayState(const DisplayState &other)
|
Graphics::DisplayState::DisplayState(const DisplayState &other)
|
||||||
|
|||||||
Reference in New Issue
Block a user