Skip to content

Commit 3331649

Browse files
committed
Add (gl.HasExtension("GL_ARB_uniform_buffer_object") and gl.HasExtension("GL_ARB_shading_language_420pack")) reporting.
1 parent 1b3f2eb commit 3331649

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

LuaMenu/widgets/api_analytics.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ local function IsTesselationShaderSupported()
115115
return gl.HasExtension and gl.HasExtension("GL_ARB_tessellation_shader") and (gl.SetTesselationShaderParameter ~= nil)
116116
end
117117

118+
local function HasGraphics420pack()
119+
return gl.HasExtension and (gl.HasExtension("GL_ARB_uniform_buffer_object") and gl.HasExtension("GL_ARB_shading_language_420pack"))
120+
end
121+
118122
local function SendGraphicsSettings()
119123
for i = 1, #settings do
120124
local value = Spring.GetConfigInt(settings[i], -1)
@@ -158,6 +162,8 @@ function DelayedInitialize()
158162
Analytics.SendOnetimeEvent("graphics:gpu:" .. ProcessString(tostring((Platform and Platform.gpu) or "unknown") or "unknown"))
159163
Analytics.SendOnetimeEvent("graphics:glRenderer:" .. ProcessString(tostring((Platform and Platform.glRenderer) or "unknown") or "unknown"))
160164
Analytics.SendOnetimeEvent("graphics:tesselation", ((IsTesselationShaderSupported() and 1) or 0))
165+
Analytics.SendOnetimeEvent("graphics:420pack", ((HasGraphics420pack() and 1) or 0))
166+
161167
end
162168

163169
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)