File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ local function IsTesselationShaderSupported()
115115 return gl .HasExtension and gl .HasExtension (" GL_ARB_tessellation_shader" ) and (gl .SetTesselationShaderParameter ~= nil )
116116end
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+
118122local 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+
161167end
162168
163169---- ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments