mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added support for the extension OES_EGL_image_external(_essl3) for GLES2/3 (#2021)
Co-authored-by: Gabriel <gabriel.sulka@visiarc.com>
This commit is contained in:
@@ -83,6 +83,12 @@ namespace bgfx
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char* s_OES_EGL_image_external[] =
|
||||
{
|
||||
"samplerExternalOES",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char* s_EXT_gpu_shader4[] =
|
||||
{
|
||||
"gl_VertexID",
|
||||
@@ -2181,6 +2187,11 @@ namespace bgfx
|
||||
bx::stringPrintf(code, "#extension GL_OES_texture_3D : enable\n");
|
||||
}
|
||||
|
||||
if (!bx::findIdentifierMatch(input, s_OES_EGL_image_external).isEmpty() )
|
||||
{
|
||||
bx::stringPrintf(code, "#extension GL_OES_EGL_image_external : enable\n");
|
||||
}
|
||||
|
||||
if (!bx::findIdentifierMatch(input, s_EXT_shadow_samplers).isEmpty() )
|
||||
{
|
||||
bx::stringPrintf(code
|
||||
|
||||
Reference in New Issue
Block a user