Skip to content

Commit e705eeb

Browse files
authored
implement HiDef and WebGL2 (#1756)
1 parent 2e0afef commit e705eeb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Platforms/Graphics/.BlazorGL/ConcreteGraphicsAdapter.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ public override bool Platform_IsProfileSupported(GraphicsProfile graphicsProfile
102102
case GraphicsProfile.Reach:
103103
return true;
104104
case GraphicsProfile.HiDef:
105-
return false;
106-
//using (OffscreenCanvas oc = new OffscreenCanvas(1, 1))
107-
//{
108-
// IWebGL2RenderingContext webgl2 = oc.GetContext<IWebGL2RenderingContext>();
109-
// return (webgl2 != null);
110-
//}
105+
using (OffscreenCanvas oc = new OffscreenCanvas(1, 1))
106+
{
107+
IWebGL2RenderingContext webgl2 = oc.GetContext<IWebGL2RenderingContext>();
108+
return (webgl2 != null);
109+
}
111110
case GraphicsProfile.FL10_0:
112111
return false;
113112
case GraphicsProfile.FL10_1:

0 commit comments

Comments
 (0)