Skip to content

Commit

Permalink
fix ios11 build error wang-bin#995
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Nov 11, 2017
1 parent c00bd1a commit 1b8ceee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codec/video/SurfaceInteropIOSurface.mm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ GLuint createTexture(CVPixelBufferRef, const VideoFormat &fmt, int plane, int pl
# endif //__IPHONE_11_0
ok = [[EAGLContext currentContext] texImageIOSurface:surface target:target internalFormat:iformat width:planeW height:planeH format:format type:dtype plane:plane invert:NO];
if (!ok) {
qWarning("error creating IOSurface texture at plane %d", i);
qWarning("error creating IOSurface texture at plane %d", plane);
}
#else
CGLError err = CGLTexImageIOSurface2D(CGLGetCurrentContext(), target, iformat, planeW, planeH, format, dtype, surface, plane);
Expand Down

0 comments on commit 1b8ceee

Please sign in to comment.