mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
Check for ATI_fragment_shader enabled
This commit is contained in:
parent
712e5042de
commit
624ad14a58
1 changed files with 2 additions and 1 deletions
|
|
@ -1073,7 +1073,7 @@ _swrast_choose_triangle( GLcontext *ctx )
|
|||
}
|
||||
}
|
||||
|
||||
if (ctx->Texture._EnabledCoordUnits || ctx->FragmentProgram._Active) {
|
||||
if (ctx->Texture._EnabledCoordUnits || ctx->FragmentProgram._Active || ctx->ATIFragmentShader._Enabled) {
|
||||
/* Ugh, we do a _lot_ of tests to pick the best textured tri func */
|
||||
const struct gl_texture_object *texObj2D;
|
||||
const struct gl_texture_image *texImg;
|
||||
|
|
@ -1089,6 +1089,7 @@ _swrast_choose_triangle( GLcontext *ctx )
|
|||
/* First see if we can use an optimized 2-D texture function */
|
||||
if (ctx->Texture._EnabledCoordUnits == 0x1
|
||||
&& !ctx->FragmentProgram._Active
|
||||
&& !ctx->ATIFragmentShader._Enabled
|
||||
&& ctx->Texture.Unit[0]._ReallyEnabled == TEXTURE_2D_BIT
|
||||
&& texObj2D->WrapS == GL_REPEAT
|
||||
&& texObj2D->WrapT == GL_REPEAT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue