libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
256 stars 82 forks source link

Not compatible with Libgdx1.9.7 #107

Closed Trurl101 closed 4 years ago

Trurl101 commented 7 years ago

With Libgdx 1.9.7 box2d crashes on android:

W/System.err: java.lang.NoSuchMethodError: No direct method <init>(Lcom/badlogic/gdx/graphics/Pixmap$Format;IIZ)V in class Lcom/badlogic/gdx/graphics/glutils/FrameBuffer; or its super classes (declaration of 'com.badlogic.gdx.graphics.glutils.FrameBuffer' appears in /data/app/xxx/base.apk)
W/System.err:     at box2dLight.LightMap.<init>(LightMap.java:120)
W/System.err:     at box2dLight.RayHandler.resizeFBO(RayHandler.java:142)
W/System.err:     at box2dLight.RayHandler.<init>(RayHandler.java:131)
rinold commented 7 years ago

Oh, 1.9.7 introduced breaking changes in FrameBuffer. Will check it.

Trurl101 commented 7 years ago

A yesterdays libgdx patch fixed the problem for now. At least for the latest libgdx snapshot.

RafalRybowski commented 7 years ago

I have this problem too. I start with libgdx and don't know how to repair this FrameBuffer(com.badlogic.gdx.graphics.glutils.GLFrameBuffer.GLFrameBufferBuilder<? extends com.badlogic.gdx.graphics.glutils.GLFrameBuffer>)' has protected access in 'com.badlogic.gdx.graphics.glutils.FrameBuffer

rinold commented 7 years ago

It's the 1.9.7 issue only (afaik). Should work with recomended versions.

RafalRybowski commented 7 years ago

thx @rinold i go down and work

crykn commented 4 years ago

Closing this, since 1.9.8 was released nearly three years ago.