Make sure _currentDraw has correct value

This commit is contained in:
Atlante45 2016-01-14 15:28:45 -08:00
parent 3e027fc5c5
commit 6ff38bc32f
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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;