From 4db06bf85b87376f6f5ac51242fa28663ee8471d Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 27 Aug 2020 13:00:36 -0700 Subject: [PATCH] ogl: init ProgramShaderCache::s_ubo_align to 1. silences a warning that it may cause div-by-zero. --- Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp b/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp index a738a98fa2..ec976676c4 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp @@ -38,7 +38,7 @@ namespace OGL { u32 ProgramShaderCache::s_ubo_buffer_size; -s32 ProgramShaderCache::s_ubo_align; +s32 ProgramShaderCache::s_ubo_align = 1; GLuint ProgramShaderCache::s_attributeless_VBO = 0; GLuint ProgramShaderCache::s_attributeless_VAO = 0; GLuint ProgramShaderCache::s_last_VAO = 0;