Rect size limit?
Closed this issue · 2 comments
UserNameBlank commented
I can't draw a Rect with both width and height over 256
Doesn't work (doesn't get drawn):
canvas.drawRect(Rect.makeWH(300f, 300f), paint)
tonsky commented
Do you have a repro? This seems very unlikely, I draw all sorts of rectangles all the time, up to 3000 at least
UserNameBlank commented
Ok, found the solution. I used LWJGL and replaced glClear(GL.COLOR_BUFFER_BIT)
with canvas.clear(color)
and I don't know why but it works now. Thanks anyway.