Skip to content

Commit 123b303

Browse files
committed
fixed alignment issues for Win32
1 parent 8591092 commit 123b303

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tutorials/common/tutorial/scenegraph.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ namespace embree
318318

319319
struct TransformNode : public Node
320320
{
321+
ALIGNED_STRUCT;
321322
TransformNode (const AffineSpace3fa& xfm, const Ref<Node>& child)
322323
: xfm(xfm), child(child) {}
323324

@@ -347,6 +348,8 @@ namespace embree
347348
template<typename Light>
348349
struct LightNode : public Node
349350
{
351+
ALIGNED_STRUCT;
352+
350353
LightNode(const Light& light)
351354
: light(light) {}
352355

@@ -355,6 +358,8 @@ namespace embree
355358

356359
struct MaterialNode : public Node
357360
{
361+
ALIGNED_STRUCT;
362+
358363
MaterialNode(const Material& material)
359364
: material(material) {}
360365

0 commit comments

Comments
 (0)