mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
r300g: fix pointer arithmetic with void* in transfer_inline_write
This commit is contained in:
parent
d531f9c2f5
commit
b088b255ec
2 changed files with 3 additions and 3 deletions
|
|
@ -55,8 +55,8 @@ struct r300_buffer
|
|||
|
||||
enum r300_buffer_domain domain;
|
||||
|
||||
void *user_buffer;
|
||||
void *constant_buffer;
|
||||
uint8_t *user_buffer;
|
||||
uint8_t *constant_buffer;
|
||||
struct r300_buffer_range ranges[R300_BUFFER_MAX_RANGES];
|
||||
unsigned num_ranges;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1824,7 +1824,7 @@ static void r300_set_constant_buffer(struct pipe_context *pipe,
|
|||
}
|
||||
|
||||
if (buf == NULL || buf->width0 == 0 ||
|
||||
(mapped = r300_buffer(buf)->constant_buffer) == NULL) {
|
||||
(mapped = (uint32_t*)r300_buffer(buf)->constant_buffer) == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue