Skip to content

Commit

Permalink
x11info is required by vaapi+egl interop
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Sep 27, 2015
1 parent 15d75eb commit 33eaf93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Priority: extra
Maintainer: Sou Bunnbu <[email protected]>
Build-Depends: debhelper (>= 9),
qt5-qmake, libqt5opengl5-dev, qtdeclarative5-dev,
libqt5x11extras5-dev,
libavutil-dev,
libavresample-dev,
libavcodec-dev,
Expand Down
2 changes: 2 additions & 0 deletions src/vaapi/SurfaceInteropVAAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ class EGL Q_DECL_FINAL: public X11 {
if (display && eglCreateImageKHR && glEGLImageTargetTexture2DOES)
return display;
// we must use the native display egl used, otherwise eglCreateImageKHR will fail.
#ifdef QT_X11EXTRAS_LIB
display = (Display*)QX11Info::display();
#endif //QT_X11EXTRAS_LIB
//RESOLVE_EGL(eglQueryNativeDisplayNV);
RESOLVE_EGL(glEGLImageTargetTexture2DOES);
RESOLVE_EGL(eglCreateImageKHR);
Expand Down

0 comments on commit 33eaf93

Please sign in to comment.