diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2020-11-23 12:50:48 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2020-11-26 03:38:11 +0100 |
commit | 6493b93b483d65862a22a480b3e72f2967c22f32 (patch) | |
tree | 7fb9314074bcc2766251f0db7f0c42a300d18504 /src/corelib/kernel/qeventdispatcher_win.cpp | |
parent | 5023c0beb52eed82e1e8ed1680878d2f7e0f693a (diff) |
RHI: Reset attribute instancing properly for OpenGL ES
Enabling instanced drawing will set glVertexAttribDivisor to 1 for the
PerInstance attributes. This is of course a persistent state, because
GL, so it will apply to all subsequent draw calls that uses attributes
with the same location number, introducing weird and wonderful randomness.
Therefore, make sure we set the divisor back to 0 for non-instanced attributes.
Change-Id: I2d9115369fa24e8d57396d2a5f88d1435fe98971
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_win.cpp')
0 files changed, 0 insertions, 0 deletions