Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ void W3DProfilerFrameCapture::Capture(UnsignedInt displayWidth, UnsignedInt disp
return;
}

// get the backbuffer
SurfaceClass *backBuffer = DX8Wrapper::_Get_DX8_Back_Buffer();
// get the surface the scene is rendered into
SurfaceClass *backBuffer = DX8Wrapper::_Get_DX8_Scene_Surface();
if (!backBuffer)
{
REF_PTR_RELEASE(surfaceClass);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ void W3DSmudgeManager::ReAcquireResources()
{
ReleaseResources();

SurfaceClass *surface=DX8Wrapper::_Get_DX8_Back_Buffer();
// TheSuperHackers @bugfix coconutbird 05/11/2026 Match the surface the scene is rendered into, which is not always the back buffer.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two aren't retail bugs. Reading the back buffer was right until this PR added the scene target. I'd drop both comments, since _Get_DX8_Scene_Surface explains itself. If you keep one, maybe make it @info.

SurfaceClass *surface=DX8Wrapper::_Get_DX8_Scene_Surface();
SurfaceClass::SurfaceDescription surface_desc;

surface->Get_Description(surface_desc);
Expand Down Expand Up @@ -323,7 +324,8 @@ void W3DSmudgeManager::render(RenderInfoClass &rinfo)
return;
}

SurfaceClass *backBuffer = DX8Wrapper::_Get_DX8_Back_Buffer();
// TheSuperHackers @bugfix coconutbird 05/11/2026 Copy from the surface the scene is rendered into, which is not always the back buffer.
SurfaceClass *backBuffer = DX8Wrapper::_Get_DX8_Scene_Surface();

if (!backBuffer)
return;
Expand Down
Loading
Loading