picking works on iOS, now cleanup the code
This commit is contained in:
@@ -104,7 +104,6 @@ void ui::Canvas::pick_update(int plane)
|
||||
if (!m_pick_data[plane])
|
||||
m_pick_data[plane] = std::make_unique<glm::u8vec4[]>(m_width*m_height);
|
||||
glReadPixels(0, 0, m_width, m_height, GL_RGBA, GL_UNSIGNED_BYTE, m_pick_data[plane].get());
|
||||
LOG("read plane %d", plane);
|
||||
m_tmp[i].unbindFramebuffer();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user