Skip to content

Commit 109e4d4

Browse files
kmqwertyAdrien GIVRY
andauthored
Compact SceneView.cpp
Co-authored-by: Adrien GIVRY <adrien@givry.pro>
1 parent 30420b7 commit 109e4d4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Sources/Overload/OvEditor/src/OvEditor/Panels/SceneView.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ void OvEditor::Panels::SceneView::HandleActorPicking()
204204

205205
m_actorPickingFramebuffer.Bind();
206206
uint8_t pixel[3];
207-
auto& baseRenderer = *EDITOR_CONTEXT(renderer).get();
208-
baseRenderer.ReadPixels(static_cast<int>(mouseX), static_cast<int>(mouseY), 1, 1, OvRendering::Settings::EPixelDataFormat::RGB,OvRendering::Settings::EPixelDataType::UNSIGNED_BYTE,pixel);
207+
EDITOR_CONTEXT(renderer)->ReadPixels(static_cast<int>(mouseX), static_cast<int>(mouseY), 1, 1, OvRendering::Settings::EPixelDataFormat::RGB, OvRendering::Settings::EPixelDataType::UNSIGNED_BYTE, pixel);
209208
m_actorPickingFramebuffer.Unbind();
210209

211210
uint32_t actorID = (0 << 24) | (pixel[2] << 16) | (pixel[1] << 8) | (pixel[0] << 0);

0 commit comments

Comments
 (0)