Skip to content

Commit e3ce3ff

Browse files
committed
crnlib
1 parent 0329ea5 commit e3ce3ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crnlib/crn_dxt1.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ void dxt1_endpoint_optimizer::compute_pca(vec3F& axis, const vec3F_array& norm_c
151151
double cov[6] = {0, 0, 0, 0, 0, 0};
152152
for (uint i = 0; i < norm_colors.size(); i++) {
153153
const vec3F& v = norm_colors[i];
154-
float r = v[0];
155-
float g = v[1];
156-
float b = v[2];
154+
double r = (double)v[0];
155+
double g = (double)v[1];
156+
double b = (double)v[2];
157157
if (m_unique_colors[i].m_weight > 1) {
158158
const double weight = m_unique_colors[i].m_weight;
159159
cov[0] += r * r * weight;

0 commit comments

Comments
 (0)