Skip to content

takePlayerScreenShot causes white flash when a CEF browser is rendered #4955

@simoofficiel

Description

@simoofficiel

Describe the bug

When using takePlayerScreenShot from the server, if the client is rendering a CEF browser (createBrowser + dxDrawImage/render target), the player's screen briefly flashes white when the screenshot is taken.

Expected Behavior

The screenshot should be captured without any visible screen flash.

Actual Behavior

The screen flashes white for a brief moment whenever the screenshot is taken.

Steps to reproduce

  1. Create a CEF browser on the client.
  2. Render the browser to the screen.
  3. Call takePlayerScreenShot from the server.
  4. Observe a white flash on the client's screen.

Version

MTA:SA release 1.6.x
Windows 10/11

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions