Textures rotated 90 degrees when importing a .glb file

I have a simple box, textured with bricks, in Blender:

enter image description here

I export this scene as glTF 2.0 and import into Godot. Here’s the result:


As you can see, the bricks are rotated 90 degrees for some reason. Why, and how can I make it right?