Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 23237 ]] Ensure Android EGL configuration supports GLES 3.x #7585

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/notes/bugfix-23237.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix crash when using acceleratedRendering on Android x86 emulator
2 changes: 2 additions & 0 deletions engine/src/java/com/runrev/android/OpenGLView.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class OpenGLView extends SurfaceView implements SurfaceHolder.Callback
// Instance variables

private static final int EGL_CONTEXT_CLIENT_VERSION = 0x00003098;
private static final int EGL_OPENGL_ES3_BIT = 0x00000040;

private EGL10 m_egl;
private EGLDisplay m_egl_display;
Expand Down Expand Up @@ -78,6 +79,7 @@ private EGLConfig findConfig(int r, int g, int b, int a)
{
int[] t_config_spec;
t_config_spec = new int[] {
EGL10 . EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT,
EGL10 . EGL_RED_SIZE, r,
EGL10 . EGL_GREEN_SIZE, g,
EGL10 . EGL_BLUE_SIZE, b,
Expand Down