KalebDark / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

D3D: swap chain is not updated after the window has been resized to a zero width or height #990

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the window is resized to a zero width or height, the size of the backbuffer 
is no more updated when the window is resized again.
The problem comes from the SurfaceD3D::swapRect() function that doesn't call 
checkForOutOfDateSwapChain() if the surface has a zero width or height.
This bug has been introduced by the change 
https://chromium-review.googlesource.com/#/c/266658/

Original issue reported on code.google.com by regis.fe...@gmail.com on 29 Apr 2015 at 11:43

GoogleCodeExporter commented 9 years ago
https://chromium-review.googlesource.com/#/c/267415/

Original comment by regis.fe...@gmail.com on 29 Apr 2015 at 11:57

GoogleCodeExporter commented 9 years ago
Project  : angle/angle
Branch   : master
Author   : Régis Fénéon <regis.feneon@gmail.com>
Committer: Jamie Madill <jmadill@chromium.org>
Commit   : 3799c3014a9e4ba4a3853c014a7127254ec19d50

Code-Review  0 : Régis Fénéon
Code-Review  +1: Geoff Lang
Code-Review  +2: Jamie Madill
Verified     0 : Geoff Lang, Jamie Madill
Verified     +1: Régis Fénéon
Commit Queue   : Chumped
Change-Id      : I9fbdd3d341d3f6fa42dfb39950e6b2d3204c4c9b
Reviewed-at    : https://chromium-review.googlesource.com/267415

surfaceD3D::swapRect(): always call checkForOutOfDateSwapChain() even if

width or height is 0.

BUG=angleproject:990

src/libANGLE/renderer/d3d/SurfaceD3D.cpp
src/tests/standalone_tests/EGLSurfaceTest.cpp

Original comment by bugdro...@chromium.org on 29 Apr 2015 at 8:03

GoogleCodeExporter commented 9 years ago

Original comment by geofflang@chromium.org on 29 Apr 2015 at 8:03