mirror of https://github.com/mpv-player/mpv
Support linking ANGLE
This commit is contained in:
parent
535e180b9e
commit
f9668f5596
|
@ -4,6 +4,7 @@
|
|||
#define ANGLE_NO_ALIASES
|
||||
#include "angle_dynamic.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "common/common.h"
|
||||
|
||||
#define ANGLE_DECL(NAME, VAR) \
|
||||
|
@ -28,6 +29,10 @@ static void angle_do_load(void)
|
|||
|
||||
bool angle_load(void)
|
||||
{
|
||||
#if !HAVE_EGL_ANGLE_LIB
|
||||
pthread_once(&angle_load_once, angle_do_load);
|
||||
return angle_loaded;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
|
9
wscript
9
wscript
|
@ -735,6 +735,15 @@ video_output_features = [
|
|||
'groups': [ 'gl' ],
|
||||
'func': check_statement(['EGL/egl.h', 'EGL/eglext.h'],
|
||||
'int x = EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE')
|
||||
} , {
|
||||
'name': '--egl-angle-lib',
|
||||
'desc': 'OpenGL Win32 ANGLE Library',
|
||||
'deps': [ 'egl-angle' ],
|
||||
'groups': [ 'gl' ],
|
||||
'func': check_statement(['EGL/egl.h'],
|
||||
'eglCreateWindowSurface(0, 0, 0, 0)',
|
||||
cflags="-DGL_APICALL= -DEGLAPI= -DANGLE_NO_ALIASES",
|
||||
lib=['EGL', 'GLESv2', 'dxguid', 'd3d9', 'gdi32', 'stdc++'])
|
||||
} , {
|
||||
'name': '--vdpau',
|
||||
'desc': 'VDPAU acceleration',
|
||||
|
|
Loading…
Reference in New Issue