Revert "st/mesa: release sampler views when redefining a texture in st_context_teximage"

This reverts commit 5c1241268b.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101961

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Marek Olšák 2017-07-31 16:53:19 +02:00
parent 49bdb73bec
commit d85802e501
1 changed files with 0 additions and 2 deletions

View File

@ -48,7 +48,6 @@
#include "st_cb_fbo.h"
#include "st_cb_flush.h"
#include "st_manager.h"
#include "st_sampler_view.h"
#include "state_tracker/st_gl_api.h"
@ -736,7 +735,6 @@ st_context_teximage(struct st_context_iface *stctxi,
pipe_resource_reference(&stImage->pt, tex);
stObj->surface_format = pipe_format;
st_texture_release_all_sampler_views(st, stObj);
stObj->needs_validation = true;
_mesa_dirty_texobj(ctx, texObj);