diff --git a/src/AcDream.App/Rendering/Wb/BindlessSupport.cs b/src/AcDream.App/Rendering/Wb/BindlessSupport.cs index 25b7241..1fd6701 100644 --- a/src/AcDream.App/Rendering/Wb/BindlessSupport.cs +++ b/src/AcDream.App/Rendering/Wb/BindlessSupport.cs @@ -5,20 +5,15 @@ namespace AcDream.App.Rendering.Wb; /// /// Thin wrapper around + capability detection -/// for the modern rendering path. Constructed once at startup. Throws if the -/// extension isn't available — callers must check -/// before constructing for production use. +/// for the modern rendering path. Constructed once at startup via +/// , which returns false if the extension isn't present. /// public sealed class BindlessSupport { - private readonly GL _gl; private readonly ArbBindlessTexture _ext; - public bool IsAvailable => true; // Construction succeeded - - public BindlessSupport(GL gl, ArbBindlessTexture extension) + private BindlessSupport(ArbBindlessTexture extension) { - _gl = gl; _ext = extension; } @@ -26,7 +21,7 @@ public sealed class BindlessSupport { if (gl.TryGetExtension(out var ext)) { - support = new BindlessSupport(gl, ext); + support = new BindlessSupport(ext); return true; } support = null;