mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-08 17:47:07 +02:00
3rd Attempt to fix texture rendering on OpenGL 1.1 cards
This commit is contained in:
@@ -3547,6 +3547,9 @@ void GLCanvas3D::_render_warning_texture() const
|
|||||||
unsigned int h = _3DScene::get_warning_texture_height();
|
unsigned int h = _3DScene::get_warning_texture_height();
|
||||||
if ((w > 0) && (h > 0))
|
if ((w > 0) && (h > 0))
|
||||||
{
|
{
|
||||||
|
//###############################################################################################################################
|
||||||
|
::glDisable(GL_LIGHTING);
|
||||||
|
//###############################################################################################################################
|
||||||
::glDisable(GL_DEPTH_TEST);
|
::glDisable(GL_DEPTH_TEST);
|
||||||
::glPushMatrix();
|
::glPushMatrix();
|
||||||
::glLoadIdentity();
|
::glLoadIdentity();
|
||||||
@@ -3580,6 +3583,9 @@ void GLCanvas3D::_render_legend_texture() const
|
|||||||
unsigned int h = _3DScene::get_legend_texture_height();
|
unsigned int h = _3DScene::get_legend_texture_height();
|
||||||
if ((w > 0) && (h > 0))
|
if ((w > 0) && (h > 0))
|
||||||
{
|
{
|
||||||
|
//###############################################################################################################################
|
||||||
|
::glDisable(GL_LIGHTING);
|
||||||
|
//###############################################################################################################################
|
||||||
::glDisable(GL_DEPTH_TEST);
|
::glDisable(GL_DEPTH_TEST);
|
||||||
::glPushMatrix();
|
::glPushMatrix();
|
||||||
::glLoadIdentity();
|
::glLoadIdentity();
|
||||||
|
|||||||
Reference in New Issue
Block a user