Skip to content

Commit cedef49

Browse files
Fix crash in UIAutomationCore.dll
samhocevar/portable-file-dialogs#51
1 parent 6f80f73 commit cedef49

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples_tests/22.RaytracedAO/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ int main()
266266

267267
auto extent = renderer->getSceneBound().getExtent();
268268
// want dynamic camera or not?
269-
if (true)
269+
if (false)
270270
{
271271
core::vector3df_SIMD ptu[] = {core::vectorSIMDf().set(camera->getPosition()),camera->getTarget(),camera->getUpVector()};
272272
auto proj = camera->getProjectionMatrix();

examples_tests/22.RaytracedAO/raytraceCommon.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ for (uint i=1u; i!=vertex_depth; i++)
302302
// TODO: investigate workgroup reductions here
303303
const uint baseOutputID = atomicAdd(rayCount[pc.cummon.rayCountWriteIx],raysToAllocate);
304304

305-
float ray_offset = dot(normalize(abs(normalizedN)),origin_error)+nbl_glsl_ieee754_gamma(3u); // I pulled the gamma(3) out of my @$$
305+
float ray_offset = 0.00001f; // I pulled the constant out of my @$$
306306
// TODO: in the future run backward error analysis of
307307
// dot(mat3(WorldToObj)*(origin+offset*geomNormal/length(geomNormal))+(WorldToObj-vx_pos[1]),geomNormal)
308308
// where

0 commit comments

Comments
 (0)