Merge pull request #6277 from vladfi1/surfaceless_egl

Surfaceless egl rendering.
This commit is contained in:
Markus Wick 2018-01-05 15:20:35 +01:00 committed by GitHub
commit ff8893b1a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -61,8 +61,16 @@ void cInterfaceEGL::DetectMode()
{
// attributes for a visual in RGBA format with at least
// 8 bits per color
int attribs[] = {EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8, EGL_RENDERABLE_TYPE, renderable_type,
int attribs[] = {EGL_RED_SIZE,
8,
EGL_GREEN_SIZE,
8,
EGL_BLUE_SIZE,
8,
EGL_RENDERABLE_TYPE,
renderable_type,
EGL_SURFACE_TYPE,
m_has_handle ? EGL_WINDOW_BIT : 0,
EGL_NONE};
// Get how many configs there are
@ -180,6 +188,8 @@ bool cInterfaceEGL::Create(void* window_handle, bool stereo, bool core)
8,
EGL_BLUE_SIZE,
8,
EGL_SURFACE_TYPE,
m_has_handle ? EGL_WINDOW_BIT : 0,
EGL_NONE};
std::vector<EGLint> ctx_attribs;