mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added support for EGL_ANDROID_recordable (#1038)
This commit is contained in:
@@ -195,6 +195,9 @@ EGL_IMPORT
|
||||
BX_TRACE("Supported EGL extensions:");
|
||||
dumpExtensions(extensions);
|
||||
|
||||
// https://www.khronos.org/registry/EGL/extensions/ANDROID/EGL_ANDROID_recordable.txt
|
||||
const bool hasEglAndroidRecordable = !!bx::findIdentifierMatch(extensions, "EGL_ANDROID_recordable");
|
||||
|
||||
EGLint attrs[] =
|
||||
{
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
||||
@@ -206,6 +209,10 @@ EGL_IMPORT
|
||||
# endif // BX_PLATFORM_
|
||||
EGL_STENCIL_SIZE, 8,
|
||||
|
||||
// Android Recordable surface
|
||||
hasEglAndroidRecordable? 0x3142 : EGL_NONE,
|
||||
hasEglAndroidRecordable? 1 : EGL_NONE,
|
||||
|
||||
EGL_NONE
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user