summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-04 17:22:19 -0700
committerBrian <[email protected]>2007-01-04 17:22:19 -0700
commitc9db223f902ce9d7e9f3038e6baac6da7f231b34 (patch)
treebb7eb01bc607a19dd4af154a1173dea51fef0208 /src/mesa/main
parent7edd2ecb55d4cdc4067303867453d7e534bfad38 (diff)
move TexturesUsed[] into gl_program since vertex programs/shaders can use textures nowadays
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/mtypes.h2
-rw-r--r--src/mesa/main/texstate.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index e73c625a825..5156eea99a2 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1853,6 +1853,7 @@ struct gl_program
GLbitfield InputsRead; /* Bitmask of which input regs are read */
GLbitfield OutputsWritten; /* Bitmask of which output regs are written to */
+ GLbitfield TexturesUsed[MAX_TEXTURE_IMAGE_UNITS]; /**< TEXTURE_x_BIT bitmask */
/** Named parameters, constants, etc. from program text */
struct gl_program_parameter_list *Parameters;
@@ -1895,7 +1896,6 @@ struct gl_vertex_program
struct gl_fragment_program
{
struct gl_program Base; /**< base class */
- GLbitfield TexturesUsed[MAX_TEXTURE_IMAGE_UNITS]; /**< TEXTURE_x_BIT bitmask */
GLuint NumAluInstructions; /**< GL_ARB_fragment_program */
GLuint NumTexInstructions;
GLuint NumTexIndirections;
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 76ee4458dcf..7be3a44d59f 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -2959,7 +2959,7 @@ update_texture_state( GLcontext *ctx )
* settle on the one with highest priority (see texture_override below).
*/
if (fprog) {
- enableBits = fprog->TexturesUsed[unit];
+ enableBits = fprog->Base.TexturesUsed[unit];
}
else {
if (!texUnit->Enabled)