GLdispatch: Use all 4096 dynamic dispatch stubs.

In stub_add_dynamic, use all 4096 dynamic dispatch stubs. There's no longer any
need to leave the last one empty.
This commit is contained in:
Kyle Brenneman 2018-01-18 11:29:28 -07:00
parent 13df532963
commit 0c08a09276

View file

@ -110,8 +110,7 @@ stub_add_dynamic(const char *name)
int idx;
idx = num_dynamic_stubs;
/* minus 1 to make sure we can never reach the last slot */
if (idx >= MAPI_TABLE_NUM_DYNAMIC - 1)
if (idx >= MAPI_TABLE_NUM_DYNAMIC)
return -1;
// Make sure that we have a dispatch stub for this index. If the stubs are