mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
mesa: Assume depth textures have a single level unless told otherwise.
This commit is contained in:
parent
588c862571
commit
2a2236606f
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue