aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstorage.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-03-04 11:03:58 -0800
committerMatt Turner <[email protected]>2013-03-21 11:04:41 -0700
commit12dc4be8a66c92ce04637abc54ed85ac7ff9aa13 (patch)
tree40c89ad26b66af640d3cfc7cb36321a920ec0881 /src/mesa/main/texstorage.c
parent38aa8ec937a1c9972b65dc448cc50f3763fa2d3b (diff)
mesa: Implement TEXTURE_IMMUTABLE_LEVELS for ES 3.0.
NOTE: This is a candidate for the 9.1 branch. Fixes piglit's texture-immutable-levels test. Reported-by: Marek Olšák <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/texstorage.c')
-rw-r--r--src/mesa/main/texstorage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index 00f19bae51c..675fd745b71 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -397,6 +397,7 @@ texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat,
}
texObj->Immutable = GL_TRUE;
+ texObj->ImmutableLevels = levels;
}
}