From b762db62c2972506fa78a5ed72f796113fc9b0d1 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 26 Oct 2010 04:25:45 +0800 Subject: mesa: Remove unnecessary glapitable.h includes. With 07b85457d95bcc70588584e9380c51cd63aa3a2b, glapitable.h is included by core mesa only to know the size of _glapi_table. It is not necessary as the same info is given by _gloffset_COUNT. This change makes _glapi_table opaque to core mesa. All operations on it are supposed to go through one of the SET/GET/CALL macros. --- src/mesa/main/context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 3e265fb308..957dcfc3cf 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -807,8 +807,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) { -- cgit v1.2.3