Daemon
Daemon copied to clipboard
Use the correct amount of texture units
Query the actual max amount of texture units with GL_MAX_COMBINED_TEXTURE_UNITS instead of a magic number, and use an std::vector with this capacity.
LGTM
Squashed the commit with minor fixes from reviews, no code changes here.