mesa: Assume depth textures have a single level unless told otherwise.
This commit is contained in:
parent
588c862571
commit
2a2236606f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue