Updated README.
This commit is contained in:
parent
a7a49ead60
commit
0e301ab49d
2 changed files with 5 additions and 2 deletions
|
@ -21,6 +21,7 @@ Supported rendering backends:
|
||||||
* OpenGL ES 2
|
* OpenGL ES 2
|
||||||
* OpenGL ES 3.1
|
* OpenGL ES 3.1
|
||||||
* WebGL 1.0
|
* WebGL 1.0
|
||||||
|
* WebGL 2.0
|
||||||
|
|
||||||
Supported HMD:
|
Supported HMD:
|
||||||
|
|
||||||
|
|
|
@ -252,6 +252,8 @@ EGL_IMPORT
|
||||||
const bool hasEglKhrCreateContext = !!bx::findIdentifierMatch(extensions, "EGL_KHR_create_context");
|
const bool hasEglKhrCreateContext = !!bx::findIdentifierMatch(extensions, "EGL_KHR_create_context");
|
||||||
const bool hasEglKhrNoError = !!bx::findIdentifierMatch(extensions, "EGL_KHR_create_context_no_error");
|
const bool hasEglKhrNoError = !!bx::findIdentifierMatch(extensions, "EGL_KHR_create_context_no_error");
|
||||||
|
|
||||||
|
const uint32_t gles = BGFX_CONFIG_RENDERER_OPENGLES;
|
||||||
|
|
||||||
for (uint32_t ii = 0; ii < 2; ++ii)
|
for (uint32_t ii = 0; ii < 2; ++ii)
|
||||||
{
|
{
|
||||||
bx::StaticMemoryBlockWriter writer(s_contextAttrs, sizeof(s_contextAttrs) );
|
bx::StaticMemoryBlockWriter writer(s_contextAttrs, sizeof(s_contextAttrs) );
|
||||||
|
@ -264,10 +266,10 @@ EGL_IMPORT
|
||||||
if (hasEglKhrCreateContext)
|
if (hasEglKhrCreateContext)
|
||||||
{
|
{
|
||||||
bx::write(&writer, EGLint(EGL_CONTEXT_MAJOR_VERSION_KHR) );
|
bx::write(&writer, EGLint(EGL_CONTEXT_MAJOR_VERSION_KHR) );
|
||||||
bx::write(&writer, EGLint(BGFX_CONFIG_RENDERER_OPENGLES / 10) );
|
bx::write(&writer, EGLint(gles / 10) );
|
||||||
|
|
||||||
bx::write(&writer, EGLint(EGL_CONTEXT_MINOR_VERSION_KHR) );
|
bx::write(&writer, EGLint(EGL_CONTEXT_MINOR_VERSION_KHR) );
|
||||||
bx::write(&writer, EGLint(BGFX_CONFIG_RENDERER_OPENGLES % 10) );
|
bx::write(&writer, EGLint(gles % 10) );
|
||||||
|
|
||||||
flags |= BGFX_CONFIG_DEBUG && hasEglKhrNoError ? 0
|
flags |= BGFX_CONFIG_DEBUG && hasEglKhrNoError ? 0
|
||||||
| EGL_CONTEXT_FLAG_NO_ERROR_BIT_KHR
|
| EGL_CONTEXT_FLAG_NO_ERROR_BIT_KHR
|
||||||
|
|
Reference in a new issue