mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 08:08:50 +00:00
[Coverity] Fix uninitialised variable warnings
This commit is contained in:
6 files changed
+11
-11
No files matched your search
@@ -1388,16 +1388,16 @@ DOCUMENT("Contains the bytes and metadata describing a thumbnail.");
|
||||
struct Thumbnail
|
||||
{
|
||||
DOCUMENT("The :class:`FileType` of the data in the thumbnail.");
|
||||
FileType type;
|
||||
FileType type = FileType::Raw;
|
||||
|
||||
DOCUMENT("The ``bytes`` byte array containing the raw data.");
|
||||
bytebuf data;
|
||||
|
||||
DOCUMENT("The width of the thumbnail image.");
|
||||
uint32_t width;
|
||||
uint32_t width = 0;
|
||||
|
||||
DOCUMENT("The height of the thumbnail image.");
|
||||
uint32_t height;
|
||||
uint32_t height = 0;
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(Thumbnail);
|
||||
@@ -122,7 +122,7 @@ struct ShaderVariable
|
||||
{
|
||||
name = "";
|
||||
rows = columns = 0;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
type = VarType::Float;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
@@ -132,7 +132,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = VarType::Float;
|
||||
@@ -146,7 +146,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = VarType::Int;
|
||||
@@ -160,7 +160,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = VarType::UInt;
|
||||
|
||||
Reference in new issue
Block a user