mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
Require WINDOW_BIT if we have a window handle.
This commit is contained in:
parent
eb59267196
commit
45ac9b678d
@ -61,9 +61,16 @@ void cInterfaceEGL::DetectMode()
|
|||||||
{
|
{
|
||||||
// attributes for a visual in RGBA format with at least
|
// attributes for a visual in RGBA format with at least
|
||||||
// 8 bits per color
|
// 8 bits per color
|
||||||
int attribs[] = {EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8,
|
int attribs[] = {EGL_RED_SIZE,
|
||||||
EGL_BLUE_SIZE, 8, EGL_RENDERABLE_TYPE, renderable_type,
|
8,
|
||||||
EGL_SURFACE_TYPE, 0,
|
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};
|
EGL_NONE};
|
||||||
|
|
||||||
// Get how many configs there are
|
// Get how many configs there are
|
||||||
@ -181,7 +188,8 @@ bool cInterfaceEGL::Create(void* window_handle, bool stereo, bool core)
|
|||||||
8,
|
8,
|
||||||
EGL_BLUE_SIZE,
|
EGL_BLUE_SIZE,
|
||||||
8,
|
8,
|
||||||
EGL_SURFACE_TYPE, 0,
|
EGL_SURFACE_TYPE,
|
||||||
|
m_has_handle ? EGL_WINDOW_BIT : 0,
|
||||||
EGL_NONE};
|
EGL_NONE};
|
||||||
|
|
||||||
std::vector<EGLint> ctx_attribs;
|
std::vector<EGLint> ctx_attribs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user