mesa: Assume depth textures have a single level unless told otherwise.

This commit is contained in:
José Fonseca 2009-07-02 17:24:25 +01:00
parent 588c862571
commit 2a2236606f
1 changed files with 3 additions and 1 deletions

View File

@ -335,7 +335,9 @@ guess_and_alloc_texture(struct st_context *st,
* pagetable arrangements.
*/
if ((stObj->base.MinFilter == GL_NEAREST ||
stObj->base.MinFilter == GL_LINEAR) &&
stObj->base.MinFilter == GL_LINEAR ||
stImage->base._BaseFormat == GL_DEPTH_COMPONENT ||
stImage->base._BaseFormat == GL_DEPTH_STENCIL_EXT) &&
stImage->level == firstLevel) {
lastLevel = firstLevel;
}