From: José Fonseca Date: Thu, 2 Jul 2009 16:24:25 +0000 (+0100) Subject: mesa: Assume depth textures have a single level unless told otherwise. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a2236606fd6ae473a2f4db6ef6d3d5030261316;p=mesa.git mesa: Assume depth textures have a single level unless told otherwise. --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index a2211ce302e..0a72784ce06 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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; }