mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-23 12:31:09 +00:00
Fix Apple compile errors from -Wnontrivial-memcall
- first argument in call to 'memset' is a pointer to non-trivially copyable type 'MetalInitialContents'
This commit is contained in:
1 parent
e3c71e6e13
commit
6906fce2be
1 file changed
+3
-3
@@ -33,18 +33,18 @@ struct MetalInitialContents
|
||||
{
|
||||
RDCCOMPILE_ASSERT(std::is_standard_layout<MetalInitialContents>::value,
|
||||
"MetalInitialContents must be POD");
|
||||
memset(this, 0, sizeof(*this));
|
||||
memset((void *)this, 0, sizeof(*this));
|
||||
}
|
||||
|
||||
MetalInitialContents(MetalResourceType t)
|
||||
{
|
||||
memset(this, 0, sizeof(*this));
|
||||
memset((void *)this, 0, sizeof(*this));
|
||||
type = t;
|
||||
}
|
||||
|
||||
MetalInitialContents(MetalResourceType t, bytebuf data)
|
||||
{
|
||||
memset(this, 0, sizeof(*this));
|
||||
memset((void *)this, 0, sizeof(*this));
|
||||
type = t;
|
||||
resourceContents = data;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user