bugfix : avoid not threadsafe access of vertex decl.

Signed-off-by: Kim <Kulling>