issue #2378: Variables to protected for Texture2D.