[Mesa-dev] [PATCH 1/5] mesa: Check the texture against all units in unbind_texobj_from_texunits().
Ian Romanick
idr at freedesktop.org
Wed Jul 6 13:04:18 PDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/03/2011 04:00 PM, Henri Verbeet wrote:
> ---
> src/mesa/main/texobj.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
> index 565a3a2..0e84b87 100644
> --- a/src/mesa/main/texobj.c
> +++ b/src/mesa/main/texobj.c
> @@ -899,7 +899,7 @@ unbind_texobj_from_texunits(struct gl_context *ctx,
> {
> GLuint u, tex;
>
> - for (u = 0; u < MAX_TEXTURE_IMAGE_UNITS; u++) {
> + for (u = 0; u < Elements(ctx->Texture.Unit); u++) {
> struct gl_texture_unit *unit = &ctx->Texture.Unit[u];
> for (tex = 0; tex < NUM_TEXTURE_TARGETS; tex++) {
> if (texObj == unit->CurrentTex[tex]) {
All of these look good except 4/5, which I replied to.
For the others:
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk4Uv8IACgkQX1gOwKyEAw8qTQCfRNodvPwQVxV2ee4l//qBTuzj
H9YAnA5/kCu3sqRrHw/irpoS1l1Es+xD
=uTXa
-----END PGP SIGNATURE-----
More information about the mesa-dev
mailing list