summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorErdi Chen <erdi@freedesktop.org>2004-05-12 18:37:11 +0000
committerErdi Chen <erdi@freedesktop.org>2004-05-12 18:37:11 +0000
commitba8788fee7fccafa2db7dd4ee3c7878031ef9fc5 (patch)
tree939e980ee2fa44304d1567963a3ac03134378132 /src/mesa/drivers
parentc318d507170d1b7cec14b76647e93ab28fb93462 (diff)
Fixed code that has computed incorrect number of modes.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/unichrome/server/via_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/server/via_dri.c b/src/mesa/drivers/dri/unichrome/server/via_dri.c
index 7ccb62bd06..0a6c8c04ca 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;
}