summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2025-12-24 15:21:48 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2025-12-24 15:23:25 -0600
commit66c392f72980298ffbcc68e90d27d0022b56721b (patch)
tree382710717032d8d66b28e85a17a905d681f9dda7 /Source/Core/VideoCommon
parent4b086b1256855be85873b9cee5b2bdd4efb91caf (diff)
VideoCommon: initialize stored viewport to 0, fixes a crash in debug mode for d3d
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/AbstractGfx.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/AbstractGfx.h b/Source/Core/VideoCommon/AbstractGfx.h
index b1528b3bb1..3a3c72c684 100644
--- a/Source/Core/VideoCommon/AbstractGfx.h
+++ b/Source/Core/VideoCommon/AbstractGfx.h
@@ -129,12 +129,12 @@ public:
struct ViewportAndScissor
{
MathUtil::Rectangle<int> scissor_rect;
- float viewport_x;
- float viewport_y;
- float viewport_width;
- float viewport_height;
- float viewport_near_depth;
- float viewport_far_depth;
+ float viewport_x = 0;
+ float viewport_y = 0;
+ float viewport_width = 0;
+ float viewport_height = 0;
+ float viewport_near_depth = 0;
+ float viewport_far_depth = 0;
};
// Stores the last viewport and scissor, the stored data is restored in 'EndUtilityDrawing'