We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9bb17 commit fc3eb9bCopy full SHA for fc3eb9b
src/examples/graphics/demo_Evert/main.cpp
@@ -420,7 +420,7 @@ namespace {
420
} else {
421
// (glupPrivateXXX are just faster inline versions
422
// of glupXXX)
423
- glupPrivateNormal3fv((float*)N);
+ glupPrivateNormal3fv(const_cast<float*>(N));
424
}
425
426
@@ -528,12 +528,12 @@ namespace {
528
quads_order_.begin(), quads_order_.end(),
529
[this](index_t i, index_t j)->bool{
530
// compares the avg depth of both quads
531
- double z1 =
+ float z1 =
532
quads_[8*i+1].z +
533
quads_[8*i+3].z +
534
quads_[8*i+5].z +
535
quads_[8*i+7].z ;
536
- double z2 =
+ float z2 =
537
quads_[8*j+1].z +
538
quads_[8*j+3].z +
539
quads_[8*j+5].z +
0 commit comments