Fix texture types, thanks to @AesenV and @kenzierocks