Feature const correct of texture

Both `enableTextureTarget()` and `disableTextureTarget()` might raise some questions about their `const`-ness, but those member functions (which conditionally access an outside global state) are kind of awkwardly situated to begin with.