e01d5a0471
Move the code that calculates the layout of 2D surfaces into a switch case.
Move the code that calculates the layout of 2D surfaces into a switch case.