[TexturedCube-1.0] Apply #10668 fix to the TexturedCube-1.0 version of the sample
[TexturedCube] Remove unnecessary code after #10668 fix