diff options
author | Brad Hughes <bradhugh@outlook.com> | 2016-10-03 13:45:10 -0400 |
---|---|---|
committer | Brad Hughes <bradhugh@outlook.com> | 2016-10-03 13:45:10 -0400 |
commit | d4b8b481277750775bb9770231760aa2f2686730 (patch) | |
tree | a7f607d08efb06daba56f0258e7b50e167bc43cb /src/osd | |
parent | 34538fa22f7cf33c3361a4b681362e7b1f39e395 (diff) |
Fix use of uninitialized stack memory in drawd3d.cpp (nw)
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/modules/render/drawd3d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/modules/render/drawd3d.cpp b/src/osd/modules/render/drawd3d.cpp index aca3fb779ca..43ce12174e8 100644 --- a/src/osd/modules/render/drawd3d.cpp +++ b/src/osd/modules/render/drawd3d.cpp @@ -446,6 +446,7 @@ void d3d_texture_manager::create_resources() texture.height = m_default_bitmap.height(); texture.palette = nullptr; texture.seqid = 0; + texture.osddata = 0; // now create it auto tex = std::make_unique<texture_info>(this, &texture, win->prescale(), PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXFORMAT(TEXFORMAT_ARGB32)); |