summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-10-29 12:45:04 +0800
committerChia-I Wu <olv@lunarg.com>2010-10-29 12:46:59 +0800
commit9de5c6a1cb1428154c371f4331b55b5161957b50 (patch)
treed4a40efee4d53646fb0350c7e4cf1472bd42a98c /src/mesa/main/context.c
parent815faa448cccc38aebb1b60ecf0bd7e6bf8f277e (diff)
parentb762db62c2972506fa78a5ed72f796113fc9b0d1 (diff)
Merge branch 'glapi-reorg'
Conflicts: src/mapi/glapi/glapi_sparc.S src/mapi/glapi/glapi_x86.S src/mapi/glapi/glapidispatch.h src/mapi/glapi/glapioffsets.h src/mapi/glapi/glprocs.h
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index eab35e7b8b..81e862275d 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -811,8 +811,7 @@ _mesa_alloc_dispatch_table(int size)
* Mesa we do this to accomodate different versions of libGL and various
* DRI drivers.
*/
- GLint numEntries = MAX2(_glapi_get_dispatch_table_size(),
- size / sizeof(_glapi_proc));
+ GLint numEntries = MAX2(_glapi_get_dispatch_table_size(), size);
struct _glapi_table *table =
(struct _glapi_table *) malloc(numEntries * sizeof(_glapi_proc));
if (table) {