Skip to content

Commit

Permalink
Merge branch 'dev/adunn/remove_assert' into 'main'
Browse files Browse the repository at this point in the history
Remove assert that keeps misfiring hindering compat

See merge request lightspeedrtx/dxvk-remix-nv!443
  • Loading branch information
AlexDunn committed Sep 12, 2023
2 parents 03d2e19 + c65f5cb commit 81e7971
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/util/util_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "util_vector.h"
#include "vulkan/vulkan_core.h"

#include <cassert>

namespace dxvk {

template<typename T>
Expand Down Expand Up @@ -323,9 +321,6 @@ namespace dxvk {
Vector4d dot0 = { Vector4d(m[0].x,m[0].y,m[0].z,m[0].w) * row0 };
double dot1 = (dot0.x + dot0.y) + (dot0.z + dot0.w);

// Note: Ensure the matrix is invertable.
assert(dot1 != 0.0);

Matrix4Base<T> output;
for (uint32_t i = 0; i < 16; i++)
output[i / 4][i % 4] = inverse[i / 4][i % 4] / dot1;
Expand Down

0 comments on commit 81e7971

Please sign in to comment.