mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 16:51:06 +00:00
gl_rasterizer_cache: don't place null textures in the recycler
This commit is contained in:
parent
85e9ba897d
commit
a131f9eb74
@ -495,8 +495,10 @@ static bool FillSurface(const Surface& surface, const u8* fill_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
CachedSurface::~CachedSurface() {
|
CachedSurface::~CachedSurface() {
|
||||||
|
if (texture.handle) {
|
||||||
owner.host_texture_recycler.emplace(*this, std::move(texture));
|
owner.host_texture_recycler.emplace(*this, std::move(texture));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool CachedSurface::CanFill(const SurfaceParams& dest_surface,
|
bool CachedSurface::CanFill(const SurfaceParams& dest_surface,
|
||||||
SurfaceInterval fill_interval) const {
|
SurfaceInterval fill_interval) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user