Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2019-06-02 12:01:51 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-06-02 12:01:51 +0300
commite6af0d3dc4f85e42437dc5fd18d6b1cb528db251 (patch)
tree5dd894203eeacdf90e45ed9ca10a87655f04b533 /src/slic3r/GUI/GLTexture.cpp
parent545c013acd950b46698ed4c1b505015e517dbc30 (diff)
Temporary low-res texture shown while generating compressed data on the CPU
Diffstat (limited to 'src/slic3r/GUI/GLTexture.cpp')
-rw-r--r--src/slic3r/GUI/GLTexture.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/slic3r/GUI/GLTexture.cpp b/src/slic3r/GUI/GLTexture.cpp
index cc6bdc715..469e192b5 100644
--- a/src/slic3r/GUI/GLTexture.cpp
+++ b/src/slic3r/GUI/GLTexture.cpp
@@ -343,18 +343,6 @@ void GLTexture::reset()
#endif // ENABLE_COMPRESSED_TEXTURES
}
-#if ENABLE_COMPRESSED_TEXTURES
-bool GLTexture::unsent_compressed_data_available() const
-{
- return m_compressor.unsent_compressed_data_available();
-}
-
-void GLTexture::send_compressed_data_to_gpu()
-{
- m_compressor.send_compressed_data_to_gpu();
-}
-#endif // ENABLE_COMPRESSED_TEXTURES
-
void GLTexture::render_texture(unsigned int tex_id, float left, float right, float bottom, float top)
{
render_sub_texture(tex_id, left, right, bottom, top, FullTextureUVs);
@@ -603,7 +591,7 @@ bool GLTexture::load_from_svg(const std::string& filename, bool use_mipmaps, uns
int lod_h = m_height;
GLint level = 0;
// we do not need to generate all levels down to 1x1
- while ((lod_w > 64) || (lod_h > 64))
+ while ((lod_w > 16) || (lod_h > 16))
{
++level;