1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-27 10:35:51 +00:00

Fixed race condition while compressing texture data and sending them to the GPU

This commit is contained in:
Enrico Turri
2019-06-03 13:53:30 +02:00
parent 4a4deef420
commit 6a8c7a8705
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -20,9 +20,10 @@ namespace GUI {
unsigned int h;
std::vector<unsigned char> src_data;
std::vector<unsigned char> compressed_data;
bool compressed;
bool sent_to_gpu;
Level(unsigned int w, unsigned int h, const std::vector<unsigned char>& data) : w(w), h(h), src_data(data), sent_to_gpu(false) {}
Level(unsigned int w, unsigned int h, const std::vector<unsigned char>& data) : w(w), h(h), src_data(data), compressed(false), sent_to_gpu(false) {}
};
GLTexture& m_texture;