summaryrefslogtreecommitdiff
path: root/src/video_core/textures/astc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/textures/astc.cpp')
-rw-r--r--src/video_core/textures/astc.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp
index eafb6b73a..a9b8f69af 100644
--- a/src/video_core/textures/astc.cpp
+++ b/src/video_core/textures/astc.cpp
@@ -25,8 +25,8 @@
25 25
26class InputBitStream { 26class InputBitStream {
27public: 27public:
28 explicit InputBitStream(const unsigned char* ptr, int nBits = 0, int start_offset = 0) 28 explicit InputBitStream(const unsigned char* ptr, int start_offset = 0)
29 : m_NumBits(nBits), m_CurByte(ptr), m_NextBit(start_offset % 8) {} 29 : m_CurByte(ptr), m_NextBit(start_offset % 8) {}
30 30
31 ~InputBitStream() = default; 31 ~InputBitStream() = default;
32 32
@@ -55,12 +55,9 @@ public:
55 } 55 }
56 56
57private: 57private:
58 const int m_NumBits;
59 const unsigned char* m_CurByte; 58 const unsigned char* m_CurByte;
60 int m_NextBit = 0; 59 int m_NextBit = 0;
61 int m_BitsRead = 0; 60 int m_BitsRead = 0;
62
63 bool done = false;
64}; 61};
65 62
66class OutputBitStream { 63class OutputBitStream {
@@ -114,7 +111,6 @@ private:
114 const int m_NumBits; 111 const int m_NumBits;
115 unsigned char* m_CurByte; 112 unsigned char* m_CurByte;
116 int m_NextBit = 0; 113 int m_NextBit = 0;
117 int m_BitsRead = 0;
118 114
119 bool done = false; 115 bool done = false;
120}; 116};