Support libgdx 1.9.11

This commit is contained in:
Izumi Kawashima 2022-11-23 19:48:12 +09:00
parent f7bdc420bf
commit fb94675868
3 changed files with 23 additions and 3 deletions

View File

@ -580,7 +580,7 @@ public class GdxGL extends GwtGL20 implements GL {
return glGetActiveAttrib(program,
index,
size,
type);
(IntBuffer)type);
}
@Override
@ -588,7 +588,7 @@ public class GdxGL extends GwtGL20 implements GL {
return glGetActiveUniform(program,
index,
size,
type);
(IntBuffer)type);
}
@Override

View File

@ -179,7 +179,7 @@ public abstract class GwtApplication implements EntryPoint, Application {
lastWidth = graphics.getWidth();
lastHeight = graphics.getHeight();
Gdx.app = this;
Gdx.audio = new GwtAudio();
Gdx.audio = new DefaultGwtAudio();
Gdx.graphics = graphics;
Gdx.gl20 = graphics.getGL20();
Gdx.gl = Gdx.gl20;

View File

@ -184,6 +184,26 @@ public class GwtGraphics implements Graphics {
return canvas.getHeight();
}
@Override
public int getSafeInsetLeft() {
return 0;
}
@Override
public int getSafeInsetTop() {
return 0;
}
@Override
public int getSafeInsetBottom() {
return 0;
}
@Override
public int getSafeInsetRight() {
return 0;
}
@Override
public long getFrameId() {
return frameId;