Skip to content

Commit 506b800

Browse files
committed
Little workaround to make ex22 build
1 parent 42a37d9 commit 506b800

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

examples_tests/22.RaytracedAO/dirty_source/ExtraCrap.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,18 @@ class Renderer : public irr::core::IReferenceCounted, public irr::core::Interfac
108108
}
109109
#endif
110110
//! type is second member due to alignment issues
111-
union
111+
union OBB_t
112112
{
113+
OBB_t() : data() {}
114+
~OBB_t() {}
115+
OBB_t(const OBB_t& rhs) : data(rhs.data) {}
116+
113117
irr::core::matrix3x4SIMD data;
114118
struct
115119
{
116-
float e1_x,e2_x,e3_x,offset_x;
117-
float e1_y,e2_y,e3_y,offset_y;
118-
float e1_z,e2_z,e3_z,offset_z;
120+
float e1_x, e2_x, e3_x, offset_x;
121+
float e1_y, e2_y, e3_y, offset_y;
122+
float e1_z, e2_z, e3_z, offset_z;
119123
};
120124
} OBB;
121125
//! different lights use different measures of their strength (this already has the reciprocal of the light PDF factored in)

src/irr/builtin/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ set(irr_resources_to_embed
109109
# workgroup "intrinsics"
110110
"irr/builtin/glsl/workgroup/shared_arithmetic.glsl"
111111
"irr/builtin/glsl/workgroup/shared_ballot.glsl"
112-
"irr/builtin/glsl/workgroup/shared_basic.glsl"
112+
#"irr/builtin/glsl/workgroup/shared_basic.glsl"
113113
"irr/builtin/glsl/workgroup/shared_clustered.glsl"
114114
"irr/builtin/glsl/workgroup/shared_shuffle.glsl"
115115
"irr/builtin/glsl/workgroup/shared_shuffle_relative.glsl"

0 commit comments

Comments
 (0)