diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2019-05-30 14:15:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-30 14:15:02 +0200 |
| commit | 90c9991086e2c062f7b1ffd1bf2693f250e39e6d (patch) | |
| tree | 12a85a742159e30c824393255dd3bb1402fc6067 /Source/Core/VideoCommon/TextureConverterShaderGen.cpp | |
| parent | 2ce587f781aa4257a17ea68938f9a6ce18c0bc38 (diff) | |
| parent | f7eff6dab8a7103a19d6fa57772aab4f448a472d (diff) | |
Merge pull request #8141 from lioncash/init
VideoCommon/ShaderGenCommon: Simplify initialization of ShaderUid class
Diffstat (limited to 'Source/Core/VideoCommon/TextureConverterShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConverterShaderGen.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp index df46254d91..9bbb4e2892 100644 --- a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp +++ b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp @@ -2,13 +2,11 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include <array> -#include <cstring> +#include "VideoCommon/TextureConverterShaderGen.h" #include "Common/Assert.h" #include "Common/CommonTypes.h" #include "VideoCommon/BPMemory.h" -#include "VideoCommon/TextureConverterShaderGen.h" #include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" @@ -18,9 +16,8 @@ TCShaderUid GetShaderUid(EFBCopyFormat dst_format, bool is_depth_copy, bool is_i bool scale_by_half, bool copy_filter) { TCShaderUid out; - UidData* uid_data = out.GetUidData<UidData>(); - memset(uid_data, 0, sizeof(*uid_data)); + UidData* const uid_data = out.GetUidData(); uid_data->dst_format = dst_format; uid_data->efb_has_alpha = bpmem.zcontrol.pixel_format == PEControl::RGBA6_Z24; uid_data->is_depth_copy = is_depth_copy; |
