Code cleanup to use array.data() rather than &array[0].
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 17 Aug 2016 21:49:55 +0000 (23:49 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 17 Aug 2016 21:54:47 +0000 (23:54 +0200)
commit40b367479c6fe23d6f2b6d822f2d5266485619f3
tree9b1e4e1b5ecd103d0f7edac451685efaf3942c52
parentc0161a1bab71331f518bd5c8c1b091df7ee12074
Code cleanup to use array.data() rather than &array[0].

These latter can cause MSVC debug asserts if the array is empty. With C++11
we'll be able to do this for std::vector later. This hopefully fixes an assert
in the Cycles subdivision code.
intern/cycles/render/mesh.cpp
intern/cycles/render/mesh_subdivision.cpp
intern/cycles/subd/subd_dice.cpp
intern/cycles/subd/subd_patch_table.cpp
intern/cycles/subd/subd_patch_table.h