From 6ff38bc32f056bd31ce25c14f1dbdfda753825ab Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Thu, 14 Jan 2016 15:28:45 -0800 Subject: [PATCH] Make sure _currentDraw has correct value --- libraries/gpu/src/gpu/GLBackend.cpp | 2 +- libraries/gpu/src/gpu/GLBackend.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/gpu/src/gpu/GLBackend.cpp b/libraries/gpu/src/gpu/GLBackend.cpp index 7c662ada41..e429ae7ef1 100644 --- a/libraries/gpu/src/gpu/GLBackend.cpp +++ b/libraries/gpu/src/gpu/GLBackend.cpp @@ -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) { diff --git a/libraries/gpu/src/gpu/GLBackend.h b/libraries/gpu/src/gpu/GLBackend.h index 70e4489304..5fcf5316a9 100644 --- a/libraries/gpu/src/gpu/GLBackend.h +++ b/libraries/gpu/src/gpu/GLBackend.h @@ -260,7 +260,7 @@ protected: using DrawCallInfoBuffer = std::vector; using NamedDrawCallInfoBuffer = std::map; - int _currentDraw = 0; + int _currentDraw{ -1 }; DrawCallInfoBuffer _drawCallInfos; NamedDrawCallInfoBuffer _namedDrawCallInfos;