mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
i965: skip too small size mipmap
this fixes doom3 crash.
This commit is contained in:
parent
4e8f123f14
commit
bbf7cc1f2a
1 changed files with 4 additions and 2 deletions
|
|
@ -218,8 +218,10 @@ intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit)
|
|||
for (i = intelObj->firstLevel; i <= intelObj->lastLevel; i++) {
|
||||
struct intel_texture_image *intelImage =
|
||||
intel_texture_image(intelObj->base.Image[face][i]);
|
||||
|
||||
/* Need to import images in main memory or held in other trees.
|
||||
/* skip too small size mipmap */
|
||||
if (intelImage == NULL)
|
||||
break;
|
||||
/* Need to import images in main memory or held in other trees.
|
||||
* If it's a render target, then its data isn't needed to be in
|
||||
* the object tree (otherwise we'd be FBO incomplete), and we need
|
||||
* to keep track of the image's MT as needing to be pulled in still,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue