HumbleUI / Skija

Java bindings for Skia
Apache License 2.0
498 stars 34 forks source link

Rect size limit? #42

Closed UserNameBlank closed 1 year ago

UserNameBlank commented 1 year ago

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 1 year ago

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 1 year ago

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.