Crashing when using love.math.isConvex()

Issue #98 duplicate
Carlo Cabanilla created an issue

Test case:

function love.load()
  vertices = {440, 280.5, 440, 600,  434, 600,  434, 280}
  print('1')
  print(love.math.isConvex(vertices))
  print('2')
end

function love.update(dt)
end

function love.draw()
  love.graphics.polygon('line', vertices)
end
$ adb logcat | grep LOVE
I/SDL/APP (18523): [LOVE] 1

And the app quits immediately.

Tested on Sony Z3 Compact and Samsung Galaxy S4.

Works fine on desktop love.

Comments (2)

  1. Log in to comment