Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was 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
Loading
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1 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 2 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.