diff --git a/steam-runtime-tools/graphics-internal.h b/steam-runtime-tools/graphics-internal.h
index 0d4af625cb40ec1acd49daeaccec11cf5c256f06..46f424446f836f8a294b78a018f30935ffcd392a 100644
--- a/steam-runtime-tools/graphics-internal.h
+++ b/steam-runtime-tools/graphics-internal.h
@@ -92,6 +92,7 @@ _srt_graphics_new (const char *multiarch_tuple,
 static inline int _srt_graphics_hash_key(SrtWindowSystem window_system,
                                          SrtRenderingInterface rendering_interface)
 {
+  G_STATIC_ASSERT (SRT_N_RENDERING_INTERFACES < 100);
   /* This allows us to have up to 100 unique renderers, we won't need nearly that
      many, but setting to 100 just to allow room to grow */
   return (int)window_system * 100 + (int)rendering_interface;
diff --git a/steam-runtime-tools/graphics.h b/steam-runtime-tools/graphics.h
index 32194e68d1da90ac232472d45a1c2dee2975483a..22de98fb6e90fae3dda18316435dfa3b72eb4662 100644
--- a/steam-runtime-tools/graphics.h
+++ b/steam-runtime-tools/graphics.h
@@ -94,8 +94,6 @@ typedef enum
 
 #define SRT_N_RENDERING_INTERFACES (SRT_RENDERING_INTERFACE_GLESV2 + 1)
 
-G_STATIC_ASSERT (SRT_N_RENDERING_INTERFACES < 100);
-
 const char *srt_graphics_get_multiarch_tuple (SrtGraphics *self);
 SrtGraphicsIssues srt_graphics_get_issues (SrtGraphics *self);
 SrtWindowSystem srt_graphics_get_window_system (SrtGraphics *self);