diff options
Diffstat (limited to 'src/3d')
| -rw-r--r-- | src/3d/visual_debug.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3d/visual_debug.cc b/src/3d/visual_debug.cc index 35ab60d..77311f6 100644 --- a/src/3d/visual_debug.cc +++ b/src/3d/visual_debug.cc @@ -5,6 +5,7 @@ #if !defined(STRIP_ALL) +#include "3d/renderer.h" #include "generated/assets.h" #include "util/asset_manager_utils.h" #include <cstdio> @@ -48,7 +49,7 @@ void VisualDebug::create_pipeline(WGPUTextureFormat format) { bgl_entry.binding = 0; bgl_entry.visibility = WGPUShaderStage_Vertex; bgl_entry.buffer.type = WGPUBufferBindingType_Uniform; - bgl_entry.buffer.minBindingSize = sizeof(mat4); + bgl_entry.buffer.minBindingSize = sizeof(GlobalUniforms); WGPUBindGroupLayoutDescriptor bgl_desc = {}; bgl_desc.entryCount = 1; |
