- test for 2D textures first since it's the most common case - declare variables close to where they're used - fix compiler warning for proxy (uninitialized use) - safe return if n != 1, 2, 3 (should never happen) - white space
- test for 2D textures first since it's the most common case - declare variables close to where they're used - fix compiler warning for proxy (uninitialized use) - safe return if n != 1, 2, 3 (should never happen) - white space