#!/bin/bash # Print defined gl.* functions not in GL ES 3.0 or in # (FIXME, none of these should be part of the ABI) # GL_EXT_discard_framebuffer # GL_EXT_map_buffer_range # GL_EXT_multi_draw_arrays # GL_NV_draw_buffers # GL_NV_read_buffer # GL_OES_EGL_image # GL_OES_get_program_binary # GL_OES_mapbuffer # GL_OES_texture_3D # GL_OES_vertex_array_object FUNCS=$(nm -D --defined-only ${1-.libs/libGLESv2.so.2} | grep -o 'T gl.*' | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <