Commit 9d81989d by Frank Henigman

Add GL_OES_EGL_image functions.

Needed to work on Chrome OS. BUG=angleproject:1297 Change-Id: I78e18472780745f73257c8954f263d236ff92180 Reviewed-on: https://chromium-review.googlesource.com/323470 Tryjob-Request: Frank Henigman <fjhenigman@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarFrank Henigman <fjhenigman@chromium.org>
parent 82e3f3de
...@@ -762,7 +762,9 @@ FunctionsGL::FunctionsGL() ...@@ -762,7 +762,9 @@ FunctionsGL::FunctionsGL()
vertexArrayVertexBuffer(nullptr), vertexArrayVertexBuffer(nullptr),
vertexArrayVertexBuffers(nullptr), vertexArrayVertexBuffers(nullptr),
blendBarrier(nullptr), blendBarrier(nullptr),
primitiveBoundingBox(nullptr) primitiveBoundingBox(nullptr),
eglImageTargetRenderbufferStorageOES(nullptr),
eglImageTargetTexture2DOES(nullptr)
{ {
} }
...@@ -1772,6 +1774,10 @@ void FunctionsGL::initializeProcsGLES() ...@@ -1772,6 +1774,10 @@ void FunctionsGL::initializeProcsGLES()
AssignGLExtensionEntryPoint(extensions, "GL_EXT_occlusion_query_boolean", loadProcAddress("glGetQueryivEXT"), &getQueryiv); AssignGLExtensionEntryPoint(extensions, "GL_EXT_occlusion_query_boolean", loadProcAddress("glGetQueryivEXT"), &getQueryiv);
AssignGLExtensionEntryPoint(extensions, "GL_EXT_occlusion_query_boolean", loadProcAddress("glGetQueryObjectuivEXT"), &getQueryObjectuiv); AssignGLExtensionEntryPoint(extensions, "GL_EXT_occlusion_query_boolean", loadProcAddress("glGetQueryObjectuivEXT"), &getQueryObjectuiv);
// GL_OES_EGL_image
AssignGLExtensionEntryPoint(extensions, "GL_OES_EGL_image", loadProcAddress("glEGLImageTargetRenderbufferStorageOES"), &eglImageTargetRenderbufferStorageOES);
AssignGLExtensionEntryPoint(extensions, "GL_OES_EGL_image", loadProcAddress("glEGLImageTargetTexture2DOES"), &eglImageTargetTexture2DOES);
// 2.0 // 2.0
if (isAtLeastGLES(gl::Version(2, 0))) if (isAtLeastGLES(gl::Version(2, 0)))
{ {
......
...@@ -747,6 +747,10 @@ class FunctionsGL ...@@ -747,6 +747,10 @@ class FunctionsGL
PFNGLBLENDBARRIERPROC blendBarrier; PFNGLBLENDBARRIERPROC blendBarrier;
PFNGLPRIMITIVEBOUNDINGBOXPROC primitiveBoundingBox; PFNGLPRIMITIVEBOUNDINGBOXPROC primitiveBoundingBox;
// ES extensions
PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC eglImageTargetRenderbufferStorageOES;
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC eglImageTargetTexture2DOES;
private: private:
void initializeProcsDesktopGL(); void initializeProcsDesktopGL();
void initializeProcsGLES(); void initializeProcsGLES();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment