mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 20:00:20 +01:00
meta: Don't _mesa_set_enable() invalid targets in ES 1.
GL_TEXTURE_1D, GL_TEXTURE_3D, GL_TEXTURE_RECTANGLE, and GL_TEXTURE_GEN_S/T/R/Q don't exist in ES 1 contexts, so any meta ops that used _mesa_meta_begin with MESA_META_TEXTURE would trigger GL errors. One such operation is _mesa_meta_Clear(). On ES 1, we want to disable GL_TEXTURE_GEN_STR_OES instead. Fixes the ES1 conformance test miplin.c, which was regressed by commit08be1d288f. NOTE: This is a candidate for the 9.0 branch. v2: Also blacklist GL_TEXTURE_3D, per Brian's comment. v3: Disable GL_TEXTURE_GEN_STR_OES, per Ian's comment. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54297 Reviewed-by: Brian Paul <brianp@vmware.com> [v1] Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit679c93ff89)
This commit is contained in:
parent
cb84fe5e10
commit
fdabc7d9f6
1 changed files with 2 additions and 0 deletions
|
|
@ -663,6 +663,8 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state)
|
|||
_mesa_set_enable(ctx, GL_TEXTURE_GEN_T, GL_FALSE);
|
||||
_mesa_set_enable(ctx, GL_TEXTURE_GEN_R, GL_FALSE);
|
||||
_mesa_set_enable(ctx, GL_TEXTURE_GEN_Q, GL_FALSE);
|
||||
} else {
|
||||
_mesa_set_enable(ctx, GL_TEXTURE_GEN_STR_OES, GL_FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue