mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-27 04:11:05 +00:00
Fix some clang warnings with constructor initialise order
This commit is contained in:
@@ -123,7 +123,7 @@ struct str : public rdctype::array<char>
|
||||
str &operator =(const char *const in);
|
||||
|
||||
str() : rdctype::array<char>() {}
|
||||
str(const str &o) { elems = 0; count = 0; *this = o; }
|
||||
str(const str &o) : rdctype::array<char>() { *this = o; }
|
||||
str &operator =(const str &o)
|
||||
{
|
||||
// do nothing if we're self-assigning
|
||||
|
||||
@@ -119,8 +119,9 @@ struct D3D11PipelineState
|
||||
struct Sampler
|
||||
{
|
||||
Sampler()
|
||||
: Samp(), MaxAniso(0), MaxLOD(0.0f), MinLOD(0.0f), MipLODBias(0.0f)
|
||||
, UseBorder(false), UseComparison(false)
|
||||
: Samp()
|
||||
, UseBorder(false), UseComparison(false)
|
||||
, MaxAniso(0), MaxLOD(0.0f), MinLOD(0.0f), MipLODBias(0.0f)
|
||||
{ BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 0.0f; }
|
||||
ResourceId Samp;
|
||||
rdctype::str AddressU, AddressV, AddressW;
|
||||
|
||||
@@ -127,8 +127,9 @@ struct GLPipelineState
|
||||
struct Sampler
|
||||
{
|
||||
Sampler()
|
||||
: Samp(), MaxAniso(0.0f), MaxLOD(0.0f), MinLOD(0.0f), MipLODBias(0.0f)
|
||||
: Samp()
|
||||
, UseBorder(false), UseComparison(false), SeamlessCube(false)
|
||||
, MaxAniso(0.0f), MaxLOD(0.0f), MinLOD(0.0f), MipLODBias(0.0f)
|
||||
{ BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 0.0f; }
|
||||
ResourceId Samp;
|
||||
rdctype::str AddressS, AddressT, AddressR;
|
||||
@@ -333,4 +334,4 @@ struct GLPipelineState
|
||||
bool32 LineSmoothEnabled;
|
||||
bool32 PolySmoothEnabled;
|
||||
} m_Hints;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user