projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c318d50
)
Fixed code that has computed incorrect number of modes.
author
Erdi Chen
<erdi@freedesktop.org>
Wed, 12 May 2004 18:37:11 +0000
(18:37 +0000)
committer
Erdi Chen
<erdi@freedesktop.org>
Wed, 12 May 2004 18:37:11 +0000
(18:37 +0000)
src/mesa/drivers/dri/unichrome/server/via_dri.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/unichrome/server/via_dri.c
b/src/mesa/drivers/dri/unichrome/server/via_dri.c
index
7ccb62b
..
0a6c8c0
100644
(file)
--- 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;
}