[Bug 48072] Textures not working correctly after commit a838e144dcaa55e227d7e99566a59f7a31d97227