Experimental fix for texture bugs.