mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-09 06:41:07 +08:00
VideoCommon: initialize stored viewport to 0, fixes a crash in debug mode for d3d
This commit is contained in:
parent
4b086b1256
commit
66c392f729
@ -129,12 +129,12 @@ public:
|
|||||||
struct ViewportAndScissor
|
struct ViewportAndScissor
|
||||||
{
|
{
|
||||||
MathUtil::Rectangle<int> scissor_rect;
|
MathUtil::Rectangle<int> scissor_rect;
|
||||||
float viewport_x;
|
float viewport_x = 0;
|
||||||
float viewport_y;
|
float viewport_y = 0;
|
||||||
float viewport_width;
|
float viewport_width = 0;
|
||||||
float viewport_height;
|
float viewport_height = 0;
|
||||||
float viewport_near_depth;
|
float viewport_near_depth = 0;
|
||||||
float viewport_far_depth;
|
float viewport_far_depth = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Stores the last viewport and scissor, the stored data is restored in 'EndUtilityDrawing'
|
// Stores the last viewport and scissor, the stored data is restored in 'EndUtilityDrawing'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user