mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
glgsg: Fix failure to unset divisor after rendering w/ instancing
This would normally be done by `disable_shader_vertex_arrays()` but it apparently isn't called between shader changes
This commit is contained in:
parent
75cbe98b1d
commit
e92d993cea
@ -905,11 +905,9 @@ update_shader_vertex_arrays(ShaderContext *prev, bool force) {
|
|||||||
stride, client_pointer);
|
stride, client_pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (divisor > 0) {
|
_glgsg->set_vertex_attrib_divisor(p, divisor);
|
||||||
_glgsg->set_vertex_attrib_divisor(p, divisor);
|
}
|
||||||
}
|
else {
|
||||||
|
|
||||||
} else {
|
|
||||||
// It's a conventional vertex attribute. Ugh.
|
// It's a conventional vertex attribute. Ugh.
|
||||||
#ifdef SUPPORT_FIXED_FUNCTION
|
#ifdef SUPPORT_FIXED_FUNCTION
|
||||||
switch (p) {
|
switch (p) {
|
||||||
|
@ -2568,9 +2568,7 @@ update_shader_vertex_arrays(ShaderContext *prev, bool force) {
|
|||||||
stride, client_pointer);
|
stride, client_pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (divisor > 0) {
|
_glgsg->set_vertex_attrib_divisor(p, divisor);
|
||||||
_glgsg->set_vertex_attrib_divisor(p, divisor);
|
|
||||||
}
|
|
||||||
|
|
||||||
++p;
|
++p;
|
||||||
client_pointer += element_stride;
|
client_pointer += element_stride;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user