summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-12-07 00:30:40 +0100
committerGitHub <noreply@github.com>2020-12-07 00:30:40 +0100
commit0dc234c5ea51667c99d64c5f13f8a11cc4865455 (patch)
treefac5e530d480f1127d2eeec90ef7ae031f245e51 /src/video_core/renderer_opengl
parentMerge pull request #5143 from comex/xx-users-size (diff)
parentvideo_core: Adjust `NUM` macro to avoid Clang warning (diff)
downloadyuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.tar
yuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.tar.gz
yuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.tar.bz2
yuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.tar.lz
yuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.tar.xz
yuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.tar.zst
yuzu-0dc234c5ea51667c99d64c5f13f8a11cc4865455.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_state_tracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state_tracker.cpp b/src/video_core/renderer_opengl/gl_state_tracker.cpp
index 6bcf831f2..45f4fc565 100644
--- a/src/video_core/renderer_opengl/gl_state_tracker.cpp
+++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp
@@ -13,7 +13,7 @@
#include "video_core/renderer_opengl/gl_state_tracker.h"
#define OFF(field_name) MAXWELL3D_REG_INDEX(field_name)
-#define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32))
+#define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / (sizeof(u32)))
namespace OpenGL {