mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
Fixed code that has computed incorrect number of modes.
This commit is contained in:
parent
c318d50717
commit
ba8788fee7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue