mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 16:54:29 +00:00
engine: android: fix EGL context create error condition
This commit is contained in:
parent
06e38b45c8
commit
8be58bcd21
@ -294,13 +294,13 @@ qboolean VID_SetMode( void )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !( negl.surface = eglCreateWindowSurface( negl.dpy, negl.cfg, negl.window, NULL )))
|
if(( negl.surface = eglCreateWindowSurface( negl.dpy, negl.cfg, negl.window, NULL )) == EGL_NO_SURFACE )
|
||||||
{
|
{
|
||||||
Con_Reportf( S_ERROR "eglCreateWindowSurface returned error: 0x%x\n", eglGetError() );
|
Con_Reportf( S_ERROR "eglCreateWindowSurface returned error: 0x%x\n", eglGetError() );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !( negl.context = eglCreateContext( negl.dpy, negl.cfg, NULL, contextAttribs )))
|
if(( negl.context = eglCreateContext( negl.dpy, negl.cfg, NULL, contextAttribs )) == EGL_NO_CONTEXT )
|
||||||
{
|
{
|
||||||
Con_Reportf( S_ERROR "eglCreateContext returned error: 0x%x\n", eglGetError() );
|
Con_Reportf( S_ERROR "eglCreateContext returned error: 0x%x\n", eglGetError() );
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user