gallium/util: add const to a parameter of util_max_layer
This commit is contained in:
parent
08275b25cc
commit
eff66bc9f8
|
@ -583,7 +583,7 @@ util_copy_constant_buffer(struct pipe_constant_buffer *dst,
|
||||||
}
|
}
|
||||||
|
|
||||||
static INLINE unsigned
|
static INLINE unsigned
|
||||||
util_max_layer(struct pipe_resource *r, unsigned level)
|
util_max_layer(const struct pipe_resource *r, unsigned level)
|
||||||
{
|
{
|
||||||
switch (r->target) {
|
switch (r->target) {
|
||||||
case PIPE_TEXTURE_CUBE:
|
case PIPE_TEXTURE_CUBE:
|
||||||
|
|
Loading…
Reference in New Issue