This commit is contained in:
twinaphex 2018-12-29 04:39:13 +01:00
parent 65cc022c31
commit 118d155360
1 changed files with 2 additions and 2 deletions

View File

@ -1470,8 +1470,8 @@ bool rarch_environment_cb(unsigned cmd, void *data)
{ {
memcpy(hwr, memcpy(hwr,
cb, offsetof(struct retro_hw_render_callback, stencil)); cb, offsetof(struct retro_hw_render_callback, stencil));
memset(hwr + offsetof(struct retro_hw_render_callback, stencil), memset((uint8_t*)hwr + offsetof(struct retro_hw_render_callback, stencil),
0, sizeof(*cb) - offsetof(struct retro_hw_render_callback, stencil)); 0, sizeof(*cb) - offsetof(struct retro_hw_render_callback, stencil));
} }
else else
memcpy(hwr, cb, sizeof(*cb)); memcpy(hwr, cb, sizeof(*cb));