On 28/02/07, Stefan Dösinger stefan@codeweavers.com wrote:
/* The blitting code uses (for now) the fixed function
pipeline, so make sure to reset all fixed
* function texture unit. No need to care for higher samplers
*/
for(i = GL_LIMITS(texture_stages) - 1; i > 0 ; i--) {
You should use GL_LIMITS(textures) here, since that's the number of fixed function texture units.