mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 05:47:23 +08:00
Fix GL_INVALID_OPERATION
This commit is contained in:
parent
f244aed9c0
commit
b2b63b296d
@ -496,7 +496,6 @@ void GLVolume::render_with_outline(const GUI::Size& cnv_size)
|
|||||||
|
|
||||||
// Some clean up to do
|
// Some clean up to do
|
||||||
glsafe(::glBindTexture(GL_TEXTURE_2D, 0));
|
glsafe(::glBindTexture(GL_TEXTURE_2D, 0));
|
||||||
shader->set_uniform("screen_size", 0);
|
|
||||||
shader->set_uniform("is_outline", false);
|
shader->set_uniform("is_outline", false);
|
||||||
if (framebuffers_type == GUI::OpenGLManager::EFramebufferType::Arb) {
|
if (framebuffers_type == GUI::OpenGLManager::EFramebufferType::Arb) {
|
||||||
glsafe(::glBindFramebuffer(GL_FRAMEBUFFER, 0));
|
glsafe(::glBindFramebuffer(GL_FRAMEBUFFER, 0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user