no more optional param for bx:write (#2662)
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
This commit is contained in:
parent
2cdba37415
commit
77f36d79cc
@ -284,11 +284,11 @@ EGL_IMPORT
|
||||
# else
|
||||
if (hasEglKhrCreateContext)
|
||||
{
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_MAJOR_VERSION_KHR) );
|
||||
bx::write(&writer, EGLint(gles / 10) );
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_MAJOR_VERSION_KHR), bx::ErrorAssert{} );
|
||||
bx::write(&writer, EGLint(gles / 10), bx::ErrorAssert{} );
|
||||
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_MINOR_VERSION_KHR) );
|
||||
bx::write(&writer, EGLint(gles % 10) );
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_MINOR_VERSION_KHR), bx::ErrorAssert{} );
|
||||
bx::write(&writer, EGLint(gles % 10), bx::ErrorAssert{} );
|
||||
|
||||
flags |= BGFX_CONFIG_DEBUG && hasEglKhrNoError ? 0
|
||||
| EGL_CONTEXT_FLAG_NO_ERROR_BIT_KHR
|
||||
@ -303,18 +303,18 @@ EGL_IMPORT
|
||||
: 0
|
||||
;
|
||||
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_FLAGS_KHR) );
|
||||
bx::write(&writer, flags);
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_FLAGS_KHR), bx::ErrorAssert{} );
|
||||
bx::write(&writer, flags, bx::ErrorAssert{});
|
||||
}
|
||||
}
|
||||
else
|
||||
# endif // BX_PLATFORM_RPI
|
||||
{
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_CLIENT_VERSION) );
|
||||
bx::write(&writer, EGLint(gles / 10));
|
||||
bx::write(&writer, EGLint(EGL_CONTEXT_CLIENT_VERSION), bx::ErrorAssert{} );
|
||||
bx::write(&writer, EGLint(gles / 10), bx::ErrorAssert{} );
|
||||
}
|
||||
|
||||
bx::write(&writer, EGLint(EGL_NONE) );
|
||||
bx::write(&writer, EGLint(EGL_NONE), bx::ErrorAssert{} );
|
||||
|
||||
m_context = eglCreateContext(m_display, m_config, EGL_NO_CONTEXT, s_contextAttrs);
|
||||
if (NULL != m_context)
|
||||
|
Loading…
Reference in New Issue
Block a user