From f83d381e1e69e680ac70036647956df35e18cdc2 Mon Sep 17 00:00:00 2001 From: scribam Date: Wed, 5 Sep 2018 22:52:33 +0200 Subject: [PATCH] clang-tidy: use nullptr --- rpcs3/Emu/RSX/GL/GLTextureCache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLTextureCache.h b/rpcs3/Emu/RSX/GL/GLTextureCache.h index bb215427d5..5428814d64 100644 --- a/rpcs3/Emu/RSX/GL/GLTextureCache.h +++ b/rpcs3/Emu/RSX/GL/GLTextureCache.h @@ -587,7 +587,7 @@ namespace gl void destroy() { - if (!locked && pbo_id == 0 && vram_texture == 0 && m_fence.is_empty()) + if (!locked && pbo_id == 0 && vram_texture == nullptr && m_fence.is_empty()) //Already destroyed return; @@ -621,7 +621,7 @@ namespace gl bool exists() const { - return vram_texture != 0; + return vram_texture != nullptr; } bool is_flushable() const @@ -646,7 +646,7 @@ namespace gl bool is_empty() const { - return vram_texture == 0; + return vram_texture == nullptr; } gl::texture_view* get_view(u32 remap_encoding, const std::pair, std::array>& remap)