|
@@ -78,10 +78,8 @@ public class GodotGLRenderView extends GLSurfaceView implements GodotRenderView
|
|
|
private final GodotRenderer godotRenderer;
|
|
|
private PointerIcon pointerIcon;
|
|
|
|
|
|
- public GodotGLRenderView(Context context, Godot godot, XRMode xrMode, int p_depth_buffer_bits,
|
|
|
- boolean p_use_debug_opengl) {
|
|
|
+ public GodotGLRenderView(Context context, Godot godot, XRMode xrMode, boolean p_use_debug_opengl) {
|
|
|
super(context);
|
|
|
- GLUtils.depth_buffer_bits = p_depth_buffer_bits;
|
|
|
GLUtils.use_debug_opengl = p_use_debug_opengl;
|
|
|
|
|
|
this.godot = godot;
|
|
@@ -91,7 +89,7 @@ public class GodotGLRenderView extends GLSurfaceView implements GodotRenderView
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
|
|
pointerIcon = PointerIcon.getSystemIcon(getContext(), PointerIcon.TYPE_DEFAULT);
|
|
|
}
|
|
|
- init(xrMode, false, 16, 0);
|
|
|
+ init(xrMode, false);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -172,7 +170,7 @@ public class GodotGLRenderView extends GLSurfaceView implements GodotRenderView
|
|
|
return pointerIcon;
|
|
|
}
|
|
|
|
|
|
- private void init(XRMode xrMode, boolean translucent, int depth, int stencil) {
|
|
|
+ private void init(XRMode xrMode, boolean translucent) {
|
|
|
setPreserveEGLContextOnPause(true);
|
|
|
setFocusableInTouchMode(true);
|
|
|
switch (xrMode) {
|
|
@@ -209,16 +207,9 @@ public class GodotGLRenderView extends GLSurfaceView implements GodotRenderView
|
|
|
* below.
|
|
|
*/
|
|
|
|
|
|
- RegularConfigChooser configChooser =
|
|
|
- new RegularFallbackConfigChooser(8, 8, 8, 8, 16, stencil,
|
|
|
- new RegularConfigChooser(5, 6, 5, 0, 16, stencil));
|
|
|
- if (GLUtils.depth_buffer_bits >= 24) {
|
|
|
- configChooser = new RegularFallbackConfigChooser(8, 8, 8, 8, 24, stencil, configChooser);
|
|
|
- if (GLUtils.depth_buffer_bits >= 32) {
|
|
|
- configChooser = new RegularFallbackConfigChooser(8, 8, 8, 8, 32, stencil, configChooser);
|
|
|
- }
|
|
|
- }
|
|
|
- setEGLConfigChooser(configChooser);
|
|
|
+ setEGLConfigChooser(
|
|
|
+ new RegularFallbackConfigChooser(8, 8, 8, 8, 24, 0,
|
|
|
+ new RegularConfigChooser(8, 8, 8, 8, 16, 0)));
|
|
|
break;
|
|
|
}
|
|
|
|