diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-06-05 11:07:59 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-06-05 11:07:59 +0300 |
commit | 836f2d777fabb94fdd0585d403bd0bedc603c2ce (patch) | |
tree | 2bd6f1523b470b730e645920a7a8c01aaeea8a44 /src/slic3r/GUI/GLTexture.hpp | |
parent | a9ea9b3e0a979f8b7aa3509c5a0129eecb789906 (diff) |
Update 3D scene when all compressed texture data are sent to GPU
Diffstat (limited to 'src/slic3r/GUI/GLTexture.hpp')
-rw-r--r-- | src/slic3r/GUI/GLTexture.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLTexture.hpp b/src/slic3r/GUI/GLTexture.hpp index d1ff366c3..5df6189b6 100644 --- a/src/slic3r/GUI/GLTexture.hpp +++ b/src/slic3r/GUI/GLTexture.hpp @@ -42,6 +42,7 @@ namespace GUI { bool unsent_compressed_data_available() const; void send_compressed_data_to_gpu(); + bool all_compressed_data_sent_to_gpu() const; private: void compress(); @@ -109,6 +110,7 @@ namespace GUI { #if ENABLE_COMPRESSED_TEXTURES bool unsent_compressed_data_available() const { return m_compressor.unsent_compressed_data_available(); } void send_compressed_data_to_gpu() { m_compressor.send_compressed_data_to_gpu(); } + bool all_compressed_data_sent_to_gpu() const { return m_compressor.all_compressed_data_sent_to_gpu(); } #endif // ENABLE_COMPRESSED_TEXTURES static void render_texture(unsigned int tex_id, float left, float right, float bottom, float top); |