Restaure GL to default after we render a batch

This commit is contained in:
Atlante45 2015-05-07 12:01:22 +02:00
parent 00571dad00
commit 721eeccce2

View file

@ -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) {