2014-10-28 60 views

回答

20

你應該嘗試用包含此錯誤的文件的include語句中的glext.h替換gl.h。

更換如下: -

#include <OpenGLES/ES2/gl.h> 

本: -

#include <OpenGLES/ES2/glext.h> 

你的包含語句應該是這樣的: -

之前: -

#include "CMVideoSampling.h" 
#include "CVTextureCache.h" 
#include "GLESHelper.h" 
#include <OpenGLES/ES2/gl.h> 
#include <AVFoundation/AVFoundation.h> 

替換後ing: -

#include "CMVideoSampling.h" 
#include "CVTextureCache.h" 
#include "GLESHelper.h" 
#include <OpenGLES/ES2/glext.h>//replace glext.h here 
#include <AVFoundation/AVFoundation.h>