Skip to content

Commit

Permalink
Support linking ANGLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Herkt committed Nov 23, 2016
1 parent 535e180 commit 27a7886
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions video/out/opengl/angle_dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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 changes: 9 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 27a7886

Please sign in to comment.