mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
fix booboo
This commit is contained in:
parent
5bbbeff865
commit
d44e498146
@ -3767,7 +3767,7 @@ draw_indexed_primitive_up(D3DPRIMITIVETYPE primitive_type,
|
|||||||
// As above, we'll hack the case of the buffer crossing the 0x10000
|
// As above, we'll hack the case of the buffer crossing the 0x10000
|
||||||
// boundary.
|
// boundary.
|
||||||
const unsigned char *buffer_start = buffer + stride * min_index;
|
const unsigned char *buffer_start = buffer + stride * min_index;
|
||||||
const unsigned char *buffer_end = buffer_start + stride * (max_index + 1);
|
const unsigned char *buffer_end = buffer + stride * (max_index + 1);
|
||||||
|
|
||||||
if (buffer_end - buffer_start > 0x10000) {
|
if (buffer_end - buffer_start > 0x10000) {
|
||||||
// Actually, the buffer doesn't fit within the required limit
|
// Actually, the buffer doesn't fit within the required limit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user