Fixed critical out of bounds bug in RB_DrawShaderPasses()