Skip to content

Commit 631536b

Browse files
authored
Add EXT function to egl proxy resolver (#102)
1 parent 80e8701 commit 631536b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flutter/shell/platform/tizen/tizen_renderer_egl.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,13 @@ void* TizenRendererEgl::OnProcResolver(const char* name) {
443443
GL_FUNC(glVertexAttrib4fv)
444444
GL_FUNC(glVertexAttribPointer)
445445
GL_FUNC(glViewport)
446+
#define GL_FUNC_EXT(ExtFunctionName, FunctionName) \
447+
else if (strcmp(name, #ExtFunctionName) == 0) { \
448+
return reinterpret_cast<void*>(eglGetProcAddress(#FunctionName)); \
449+
}
450+
GL_FUNC_EXT(glMultiDrawArraysIndirectEXT, glMultiDrawArraysIndirect)
451+
GL_FUNC_EXT(glMultiDrawElementsIndirectEXT, glMultiDrawElementsIndirect)
452+
#undef GL_FUNC_EXT
446453
#undef GL_FUNC
447454

448455
FT_LOG(Warn) << "Could not resolve: " << name;

0 commit comments

Comments
 (0)