mirror of
https://github.com/overte-org/overte.git
synced 2025-08-18 01:23:53 +02:00
Restaure GL to default after we render a batch
This commit is contained in:
parent
00571dad00
commit
721eeccce2
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ void GLBackend::render(Batch& batch) {
|
|||
command++;
|
||||
offset++;
|
||||
}
|
||||
|
||||
// Restaure GL default state
|
||||
for (auto command : gpu::GLBackend::GLState::_resetStateCommands) {
|
||||
command->run(this);
|
||||
}
|
||||
}
|
||||
|
||||
void GLBackend::renderBatch(Batch& batch) {
|
||||
|
|
Loading…
Reference in a new issue