Browse Source

Remove glibc version statement because that didn't work, remove isFinite

because it also doesn't work with -ffast-math
tags/v0.3.1
Andrew Belt 7 years ago
parent
commit
889009e911
3 changed files with 1 additions and 10 deletions
  1. +0
    -3
      include/math.hpp
  2. +0
    -6
      src/main.cpp
  3. +1
    -1
      src/widgets/FramebufferWidget.cpp

+ 0
- 3
include/math.hpp View File

@@ -181,9 +181,6 @@ struct Vec {
Vec round() {
return Vec(roundf(x), roundf(y));
}
bool isFinite() {
return isfinite(x) && isfinite(y);
}
bool isZero() {
return x == 0.0 && y == 0.0;
}


+ 0
- 6
src/main.cpp View File

@@ -86,12 +86,6 @@ void fixCwd() {
#endif


#ifdef ARCH_LIN
// Tell Linux linker to request older version of glibc
__asm__(".symver realpath,realpath@GLIBC_2.2.5");
#endif


using namespace rack;

int main() {


+ 1
- 1
src/widgets/FramebufferWidget.cpp View File

@@ -40,7 +40,7 @@ void FramebufferWidget::step() {
internal->box.pos = padding.neg();
internal->box.size = box.size.plus(padding.mult(2));
Vec fbSize = internal->box.size.mult(gPixelRatio);
assert(fbSize.isFinite());
// assert(fbSize.isFinite());

internal->setFramebuffer(NULL);
NVGLUframebuffer *fb = nvgluCreateFramebuffer(gVg, fbSize.x, fbSize.y, NVG_IMAGE_REPEATX | NVG_IMAGE_REPEATY);


Loading…
Cancel
Save