mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 06:39:04 +02:00
Make sure _currentDraw has correct value
This commit is contained in:
parent
3e027fc5c5
commit
6ff38bc32f
2 changed files with 2 additions and 2 deletions
|
@ -436,7 +436,7 @@ void GLBackend::do_runLambda(Batch& batch, size_t paramOffset) {
|
|||
|
||||
void GLBackend::do_startNamedCall(Batch& batch, size_t paramOffset) {
|
||||
_currentNamedCall = batch._names.get(batch._params[paramOffset]._uint);
|
||||
_currentDraw = 0;
|
||||
_currentDraw = -1;
|
||||
}
|
||||
|
||||
void GLBackend::do_stopNamedCall(Batch& batch, size_t paramOffset) {
|
||||
|
|
|
@ -260,7 +260,7 @@ protected:
|
|||
using DrawCallInfoBuffer = std::vector<DrawCallInfo>;
|
||||
using NamedDrawCallInfoBuffer = std::map<std::string, DrawCallInfoBuffer>;
|
||||
|
||||
int _currentDraw = 0;
|
||||
int _currentDraw{ -1 };
|
||||
DrawCallInfoBuffer _drawCallInfos;
|
||||
NamedDrawCallInfoBuffer _namedDrawCallInfos;
|
||||
|
||||
|
|
Loading…
Reference in a new issue