dolphin/Source/Core/VideoBackends/OGL/GLExtensions
Ryan Houdek f2d998c938 Work around broken Android garbage.
This fixes running Dolphin on the Nexus 9.

Android's EGL stack has internal arrays that they use for tracking OpenGL function usage. Probably has something to do with their OpenGL profiling
garbage that used to be in ADT.

Android has three of these arrays, each statically allocated.
One array is for all GLES 1.x functions
One array is for all GLES 2.0/3.0/3.1 and a couple of extensions they deem worthy of being in this array.
The last array is for all function pointers grabbed via eglGetProcAddress that isn't in the other two arrays.

The last array is the issue that we are having problems with. This array is 256 members in length.
So if you are pulling more than 256 function pointers that Google doesn't track in their internal array, the function will return NULL and yell at you
in logcat.

The Nvidia Shield Tablet gets around this by replacing part of the EGL stack with their own implementation that doesn't have this garbage.
The Nexus 9 on the other hand doesn't get away with this. So we pull >100 more function pointers than the array can handle, and some of those we need
to use.

The workaround for this is to grab OpenGL 1.1 functions last because we won't actually be using those functions, so we get away with not grabbing the
function pointers.
2014-12-20 15:15:57 -06:00
..
ARB_blend_func_extended.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_buffer_storage.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_debug_output.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_draw_elements_base_vertex.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_ES2_compatibility.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_framebuffer_object.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_get_program_binary.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_map_buffer_range.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_sample_shading.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_sampler_objects.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_sync.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_texture_multisample.h ogl: add ARB_texture_multisample 2014-05-19 09:21:44 +02:00
ARB_uniform_buffer_object.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_vertex_array_object.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ARB_viewport_array.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_1_1.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_1_2.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_1_3.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_1_4.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_1_5.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_2_0.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_3_0.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_3_1.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_3_2.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
gl_common.h [GLExt-Cleanup] This cleans up some extra bits unneeded in the extension headers 2014-01-23 07:11:13 -06:00
GLExtensions.cpp Work around broken Android garbage. 2014-12-20 15:15:57 -06:00
GLExtensions.h Add missing includes where headers depend on other headers having been included first. 2014-10-21 21:22:16 -04:00
KHR_debug.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
NV_primitive_restart.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00