diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 02:30:31 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 02:30:31 +0100 |
commit | 5ed377b989b01141a65f02a0ae0a9ed52ce43346 (patch) | |
tree | 7d76d99551ba6a52f8c75594ad028abcbd536eec /src | |
parent | astc: Rename C types to common_types (diff) | |
download | yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.tar yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.tar.gz yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.tar.bz2 yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.tar.lz yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.tar.xz yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.tar.zst yuzu-5ed377b989b01141a65f02a0ae0a9ed52ce43346.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/textures/astc.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index 7d5796794..02cbad1ea 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -162,8 +162,8 @@ enum class IntegerEncoding { JustBits, Qus32, Trit }; class IntegerEncodedValue { private: - const IntegerEncoding m_Encoding; - const u32 m_NumBits; + IntegerEncoding m_Encoding; + u32 m_NumBits; u32 m_BitValue; union { u32 m_Qus32Value; @@ -171,13 +171,6 @@ private: }; public: - // Jank, but we're not doing any heavy lifting in this class, so it's - // probably OK. It allows us to use these in std::vectors... - IntegerEncodedValue& operator=(const IntegerEncodedValue& other) { - new (this) IntegerEncodedValue(other); - return *this; - } - IntegerEncodedValue(IntegerEncoding encoding, u32 numBits) : m_Encoding(encoding), m_NumBits(numBits) {} |