1 /* { dg-do compile } */
3 typedef struct __GLcontextRec GLcontext
;
7 struct gl_renderbuffer
*Wrapped
;
8 void (*PutValues
) (GLcontext
* ctx
, struct gl_renderbuffer
* rb
,
9 int count
, const int x
[], const int y
[],
10 const void *values
, const char *mask
);
14 put_mono_values_s8 (GLcontext
* ctx
, struct gl_renderbuffer
*s8rb
,
15 int count
, const int x
[], const int y
[],
16 const void *value
, const char *mask
)
18 struct gl_renderbuffer
*dsrb
= s8rb
->Wrapped
;
20 const char val
= *((char *) value
);
21 for (i
= 0; i
< count
; i
++)
23 temp
[i
] = (temp
[i
] & 0xffffff) | val
;
24 dsrb
->PutValues (ctx
, dsrb
, count
, x
, y
, temp
, mask
);
27 /* { dg-final { cleanup-tree-dump "vect" } } */