mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
draw: Avoid integer overflow converting pointers on 64bit archs.
Not really an error, as we only care for the lower 4 bits.
This commit is contained in:
parent
c789bd376f
commit
2f24bc6984
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ void draw_vs_set_constants( struct draw_context *draw,
|
|||
const float (*constants)[4],
|
||||
unsigned size )
|
||||
{
|
||||
if (((unsigned)constants) & 0xf) {
|
||||
if (((uintptr_t)constants) & 0xf) {
|
||||
if (size > draw->vs.const_storage_size) {
|
||||
if (draw->vs.aligned_constant_storage)
|
||||
align_free((void *)draw->vs.aligned_constant_storage);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue