mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 22:35:58 +08:00
Fix generation of preview bitmap for bad font.
This commit is contained in:
parent
41f0017f07
commit
4f2263a963
@ -112,6 +112,10 @@ void CreateFontImageJob::finalize(bool canceled, std::exception_ptr &)
|
||||
|
||||
*m_input.is_created = true;
|
||||
|
||||
// Exist result bitmap with preview?
|
||||
// (not valid input. e.g. not loadable font)
|
||||
if (m_result.empty()) return;
|
||||
|
||||
// upload texture on GPU
|
||||
const GLenum target = GL_TEXTURE_2D;
|
||||
glsafe(::glBindTexture(target, m_input.texture_id));
|
||||
|
Loading…
x
Reference in New Issue
Block a user