Use OpenGL render engine on non-Windows platforms

This commit is contained in:
Yoshi Askharoun
2026-07-25 23:30:54 -05:00
parent 95b6fba18f
commit b21401e3ab
4 changed files with 9 additions and 3 deletions
+6 -1
View File
@@ -15,6 +15,7 @@ using Microsoft.Iris.Render;
using Microsoft.Iris.RenderAPI.Audio;
using Microsoft.Iris.UI;
using System;
using Microsoft.Iris.Render.OpenGL;
namespace Microsoft.Iris.Session
{
@@ -68,10 +69,14 @@ namespace Microsoft.Iris.Session
int pdwDefaultLayout = 0;
Win32Api.IFWIN32(Win32Api.GetProcessDefaultLayout(out pdwDefaultLayout));
_rtl = pdwDefaultLayout == 1;
_engine = RenderApi.CreateEngine(IrisEngineInfo.CreateLocal(), Dispatcher);
#else
_rtl = false;
_engine = OpenGLRenderApi.CreateEngine(IrisEngineInfo.CreateLocal(), Dispatcher);
#endif
_engine = RenderApi.CreateEngine(IrisEngineInfo.CreateLocal(), Dispatcher);
_session = _engine.Session;
TextImageCache.Initialize(this);
ScavengeImageCache.Initialize(this);
+1
View File
@@ -12,6 +12,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\UIX.RenderApi.OpenGL\UIX.RenderApi.OpenGL.csproj" />
<ProjectReference Include="..\UIX.RenderApi\UIX.RenderApi.csproj" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.2" />