diff options
| author | Mathew Maidment <mathew1800@gmail.com> | 2016-01-04 19:11:14 -0500 |
|---|---|---|
| committer | Mathew Maidment <mathew1800@gmail.com> | 2016-01-04 19:11:14 -0500 |
| commit | 0509292f860e7088af81da881d7584ac929430a3 (patch) | |
| tree | d90c0712c7d09027998ba14a9e9b3dfed8132ecb /Source/Core/VideoCommon/GeometryShaderGen.cpp | |
| parent | 8b3bf1557f36d1ad58011b7ef41981028ae096e1 (diff) | |
| parent | 617f9d953259a113d1c00c588c8c70837a791ae3 (diff) | |
Merge pull request #3431 from stenzek/shadercache
ShaderGen: Remove virtual methods and string from ShaderGeneratorInterface.
Diffstat (limited to 'Source/Core/VideoCommon/GeometryShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GeometryShaderGen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index 9c1ccd3071..602adb7e21 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -34,7 +34,9 @@ static T GenerateGeometryShader(u32 primitive_type, API_TYPE ApiType) // Non-uid template parameters will write to the dummy data (=> gets optimized out) geometry_shader_uid_data dummy_data; geometry_shader_uid_data* uid_data = out.template GetUidData<geometry_shader_uid_data>(); - if (uid_data == nullptr) + if (uid_data != nullptr) + memset(uid_data, 0, sizeof(*uid_data)); + else uid_data = &dummy_data; uid_data->primitive_type = primitive_type; |
