Closed pjurkas closed 6 years ago
Is there a reason why OpenGLBuilder::allocateAllTextures() increments the startIndex at the very beginning? It seems that the index is wasted.
diff --git a/src/lang-glsl/glsl.cpp b/src/lang-glsl/glsl.cpp index 3cffde8..1a66897 100644 --- a/src/lang-glsl/glsl.cpp +++ b/src/lang-glsl/glsl.cpp @@ -230,7 +230,7 @@ void OpenGLBuilder::allocateAllTextures(unsigned startIndex) { deleteAllTextures(); - m_startIndex = startIndex + 1; + m_startIndex = startIndex; unsigned currIndex = m_startIndex; // Process the 3D Luts first
Merged
Is there a reason why OpenGLBuilder::allocateAllTextures() increments the startIndex at the very beginning? It seems that the index is wasted.