mesa: number of combiner terms to pop depends on GL_NV_texture_env_combine4
authorBrian Paul <brianp@vmware.com>
Sat, 1 Oct 2011 14:27:46 +0000 (08:27 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 1 Oct 2011 14:29:34 +0000 (08:29 -0600)
commitdd9574d7a585bd470f2fe28f73e6d31430293dc9
treef353729572ad17f9586187ad7d9a66f8a64abdd1
parent9520f483b8f1e45fa474674b415554988de5d8d3
mesa: number of combiner terms to pop depends on GL_NV_texture_env_combine4

If GL_NV_texture_env_combine4 is not supported, setting the fourth
combiner term would generate a GL error.
Of course, I noticed this right after committing the previous patch
to use a loop in the first place.  <sigh>

Note that GL_EXT_texture_env_combine is always supported so the first
three combiner terms are always accepted.
src/mesa/main/attrib.c