Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewport corruption with AMD Radeon on window resize #754

Open
jseward opened this issue Feb 2, 2022 · 1 comment
Open

Viewport corruption with AMD Radeon on window resize #754

jseward opened this issue Feb 2, 2022 · 1 comment
Labels
samples Issues related to Samples

Comments

@jseward
Copy link

jseward commented Feb 2, 2022

  1. load https://github.com/microsoft/DirectX-Graphics-Samples/tree/master/Samples/Desktop/D3D12HelloWorld/src/HelloTriangle

  2. modify https://github.com/microsoft/DirectX-Graphics-Samples/blob/master/Samples/Desktop/D3D12HelloWorld/src/HelloTriangle/D3D12HelloTriangle.cpp#L201 with the following code

        // Define the geometry for a triangle.
        Vertex triangleVertices[] =
        {
            { { 0.0f, 1.f * m_aspectRatio, 0.0f }, { 1.0f, 0.0f, 0.0f, 1.0f } },
            { { 1.f, -1.f * m_aspectRatio, 0.0f }, { 0.0f, 1.0f, 0.0f, 1.0f } },
            { { -1.f, -1.f * m_aspectRatio, 0.0f }, { 0.0f, 0.0f, 1.0f, 1.0f } }
        };

This will make the bug visible as the triangle will now extend to the window extents.

  1. run app and resize the window a bit using the mouse (ex. bottom right corner)

  2. see corruption in the viewport as it seems mismatched to the window client area
    image

  3. moving the window with the title bar will fix the bug

DxDiag.txt

@walbourn walbourn added the samples Issues related to Samples label Mar 19, 2022
@PixelRick
Copy link

Same with an RTX2080 for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues related to Samples
Projects
None yet
Development

No branches or pull requests

3 participants