From: Erdi Chen Date: Wed, 12 May 2004 18:37:11 +0000 (+0000) Subject: Fixed code that has computed incorrect number of modes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba8788fee7fccafa2db7dd4ee3c7878031ef9fc5;p=mesa.git Fixed code that has computed incorrect number of modes. --- diff --git a/src/mesa/drivers/dri/unichrome/server/via_dri.c b/src/mesa/drivers/dri/unichrome/server/via_dri.c index 7ccb62bd066..0a6c8c04cab 100644 --- a/src/mesa/drivers/dri/unichrome/server/via_dri.c +++ b/src/mesa/drivers/dri/unichrome/server/via_dri.c @@ -435,7 +435,7 @@ const __GLcontextModes __glModes[] = static int viaInitContextModes(const DRIDriverContext *ctx, int *numModes, const __GLcontextModes **modes) { - *numModes = sizeof(__glModes)/sizeof(__GLcontextModes *); + *numModes = sizeof(__glModes)/sizeof(__glModes[0]); *modes = &__glModes[0]; return 1; }