jira:none
code is from PrusaSlicer,thanks for PrusaSlicer and Lukas Matena
commit e04e8c55cfc0498bb665f6fb515f3a8fcea64796
Author: Lukas Matena <lukasmatena@seznam.cz>
Date: Fri Dec 2 14:21:18 2022 +0100
Improved performance of GLModel::render:
The way the OpenGL version was checked was quite inefficient
Change-Id: I6d7c6678e383c5cf2fbfea5b61ef65beab5328f9
1. add specific shader for thumbnail
2. do not render the negative-z part
3. fix the sinking related issue under cli
Change-Id: Ia59083437544c1c0bd924c811274ccbb137e9eb7
1. fix the color not correct issue
2. fix the warning when loading thumbnail under cli
3. remove the invalid error log
Change-Id: I4dd553b218e264bb811606053d920b5861ad6bd4
patch picked from PrusaSlicer, thanks to Prusa3D
Windows specific: Use mipmaps generated through OpenGL for AMD graphics cards with drivers newer than 22.6.1.
Since AMD driver version 22.7.1,
there is probably some bug in the driver that causes the issue with the missing texture of the bed.
It seems that this issue only triggers when mipmaps are generated manually (combined with a texture compression)
and when mipmaps are generated through OpenGL glGenerateMipmap is working.
This workaround detects the AMD driver version and generates mipmaps through OpenGL for driver versions newer than 22.6.1.
Change-Id: I679dd61efec8f4baf97e5bf4868cb93db5184dcf