mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
GL_DOUBLE doesn't follow GL_FLOAT, fix indexing (Keith Harrison)
This commit is contained in:
parent
948dff8932
commit
f2f3350774
1 changed files with 2 additions and 2 deletions
|
|
@ -60,9 +60,9 @@ typedef struct {
|
|||
/*
|
||||
* Convert GL_BYTE, GL_UNSIGNED_BYTE, .. GL_DOUBLE into an integer
|
||||
* in the range [0, 7]. Luckily these type tokens are sequentially
|
||||
* numbered in gl.h
|
||||
* numbered in gl.h, except for GL_DOUBLE.
|
||||
*/
|
||||
#define TYPE_IDX(t) ((t) & 0xf)
|
||||
#define TYPE_IDX(t) ( (t) == GL_DOUBLE ? 7 : (t) & 7 )
|
||||
|
||||
|
||||
static array_func ColorFuncs[2][8] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue