Lines Matching refs:legal
54 GLboolean legal; in set_env_mode() local
66 legal = GL_TRUE; in set_env_mode()
70 legal = GL_TRUE; in set_env_mode()
73 legal = ctx->Extensions.NV_texture_env_combine4; in set_env_mode()
76 legal = GL_FALSE; in set_env_mode()
79 if (legal) { in set_env_mode()
111 GLboolean legal; in set_combiner_mode() local
119 legal = GL_TRUE; in set_combiner_mode()
122 legal = ctx->Extensions.ARB_texture_env_combine; in set_combiner_mode()
126 legal = (ctx->API == API_OPENGL_COMPAT && in set_combiner_mode()
132 legal = (ctx->Extensions.ARB_texture_env_dot3 && in set_combiner_mode()
138 legal = (ctx->API == API_OPENGL_COMPAT && in set_combiner_mode()
142 legal = GL_FALSE; in set_combiner_mode()
145 if (!legal) { in set_combiner_mode()
181 GLboolean alpha, legal; in set_combiner_source() local
224 legal = GL_TRUE; in set_combiner_source()
234 legal = (ctx->Extensions.ARB_texture_env_crossbar && in set_combiner_source()
238 legal = (ctx->API == API_OPENGL_COMPAT && in set_combiner_source()
243 legal = (ctx->API == API_OPENGL_COMPAT && in set_combiner_source()
247 legal = GL_FALSE; in set_combiner_source()
250 if (!legal) { in set_combiner_source()
273 GLboolean alpha, legal; in set_combiner_operand() local
315 legal = !alpha in set_combiner_operand()
324 legal = (term < 2) || ctx->Extensions.ARB_texture_env_combine in set_combiner_operand()
328 legal = GL_TRUE; in set_combiner_operand()
331 legal = GL_FALSE; in set_combiner_operand()
334 if (!legal) { in set_combiner_operand()