Merge "handles glGetFloatv with GL_STENCIL_VALUE_MASK etc" into studio-1.0-dev