fix uniforms in node_canvas
This commit is contained in:
@@ -948,20 +948,9 @@ void Canvas::stroke_start(glm::vec3 point, float pressure, const std::shared_ptr
|
||||
m_dirty_box[i] = glm::vec4(m_width, m_height, 0, 0); // reset bounding box
|
||||
m_dirty_face[i] = false;
|
||||
|
||||
// if (m_state == kCanvasMode::Erase || m_layers[m_current_layer_idx].m_alpha_locked)
|
||||
// {
|
||||
// m_layers[m_current_layer_idx].m_rtt[i].bindFramebuffer();
|
||||
// m_tmp[i].bindTexture();
|
||||
// glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, m_width, m_height);
|
||||
// m_tmp[i].unbindTexture();
|
||||
// m_layers[m_current_layer_idx].m_rtt[i].unbindFramebuffer();
|
||||
// }
|
||||
// else
|
||||
{
|
||||
m_tmp[i].bindFramebuffer();
|
||||
m_tmp[i].clear({ 0, 0, 0, 0 });
|
||||
m_tmp[i].unbindFramebuffer();
|
||||
}
|
||||
m_tmp[i].bindFramebuffer();
|
||||
m_tmp[i].clear({ 0, 0, 0, 0 });
|
||||
m_tmp[i].unbindFramebuffer();
|
||||
}
|
||||
m_show_tmp = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user