diff --git a/generator/opengl_loader_generator.py b/generator/opengl_loader_generator.py index 8a1d4bfe47..4f4f46f6d9 100644 --- a/generator/opengl_loader_generator.py +++ b/generator/opengl_loader_generator.py @@ -166,8 +166,7 @@ def compute_params(root, supported_extensions): for command in section.findall('./require/command'): proc_name = command.attrib['name'] assert all_procs[proc_name].alias == None - if proc_name not in removed_procs: - section_procs.append(all_procs[proc_name]) + section_procs.append(all_procs[proc_name]) section_enums = [] for enum in section.findall('./require/enum'): diff --git a/generator/templates/opengl/OpenGLFunctionsBase.cpp b/generator/templates/opengl/OpenGLFunctionsBase.cpp index 79fc5b1529..cc35dad37f 100644 --- a/generator/templates/opengl/OpenGLFunctionsBase.cpp +++ b/generator/templates/opengl/OpenGLFunctionsBase.cpp @@ -35,6 +35,14 @@ MaybeError OpenGLFunctionsBase::LoadOpenGLESProcs(GetProcAddress getProc, int ma } {% endfor %} + + {% for block in extension_gles_blocks %} + // {{block.extension}} + {% for proc in block.procs %} + DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); + {% endfor %} + {% endfor %} + return {}; } @@ -48,6 +56,14 @@ MaybeError OpenGLFunctionsBase::LoadDesktopGLProcs(GetProcAddress getProc, int m } {% endfor %} + + {% for block in extension_desktop_gl_blocks %} + // {{block.extension}} + {% for proc in block.procs %} + DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); + {% endfor %} + {% endfor %} + return {}; }