diff options
Diffstat (limited to 'intern/cycles/render/scene.cpp')
-rw-r--r-- | intern/cycles/render/scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/scene.cpp b/intern/cycles/render/scene.cpp index b35cdbd3db5..c0f1ae0445e 100644 --- a/intern/cycles/render/scene.cpp +++ b/intern/cycles/render/scene.cpp @@ -79,13 +79,13 @@ DeviceScene::DeviceScene(Device *device) sobol_directions(device, "__sobol_directions", MEM_TEXTURE), ies_lights(device, "__ies", MEM_TEXTURE) { - memset(&data, 0, sizeof(data)); + memset((void*)&data, 0, sizeof(data)); } Scene::Scene(const SceneParams& params_, Device *device) : device(device), dscene(device), params(params_) { - memset(&dscene.data, 0, sizeof(dscene.data)); + memset((void *)&dscene.data, 0, sizeof(dscene.data)); camera = new Camera(); dicing_camera = new Camera(); |