dolphin/Source/Core
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
..
AudioCommon Upgrade AudioUnit API usage. 2014-11-25 00:42:21 -05:00
Common Fix hires texture path. 2014-12-11 19:24:16 -05:00
Core Removed redundant code from the GC Adapter interface. 2014-12-20 09:44:35 +11:00
DiscIO DiscIO: Clear error status when reading file 2014-12-14 13:16:21 +01:00
DolphinQt DolphinQt: Silence -Wshadow warnings. 2014-12-09 10:36:16 -06:00
DolphinWX Merge pull request #1706 from Armada651/line-width 2014-12-18 19:43:12 -06:00
InputCommon HW: Remove UpdateOutput 2014-11-28 10:54:04 -08:00
UICommon Added GameCube Adapter support. 2014-12-10 20:45:45 +11:00
VideoBackends Work around broken Android garbage. 2014-12-20 15:15:57 -06:00
VideoCommon OGL: Disable geometry shaders on Intel's Windows drivers due to broken interface blocks. 2014-12-19 23:56:02 +01:00
CMakeLists.txt Merge pull request #1085 from waddlesplash/refactoring 2014-10-05 21:25:44 -04:00