From 26b2901931dd02600916fecd2a3f0edb56b0e225 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 26 Oct 2015 18:04:07 +0100 Subject: [PATCH] Bugfix for viewports on C++ side not matching C# structure --- renderdoc/api/replay/gl_pipestate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/api/replay/gl_pipestate.h b/renderdoc/api/replay/gl_pipestate.h index 7b2c40b1f..1a7a2e7cd 100644 --- a/renderdoc/api/replay/gl_pipestate.h +++ b/renderdoc/api/replay/gl_pipestate.h @@ -190,10 +190,11 @@ struct GLPipelineState { struct Viewport { - Viewport() : Left(0.0f), Bottom(0.0f), Width(0.0f), Height(0.0f), MinDepth(0.0f), MaxDepth(0.0f) {} + Viewport() : Left(0.0f), Bottom(0.0f), Width(0.0f), Height(0.0f), MinDepth(0.0f), MaxDepth(0.0f), Enabled(true) {} float Left, Bottom; float Width, Height; double MinDepth, MaxDepth; + bool32 Enabled; }; rdctype::array Viewports;