1
0
mirror of synced 2024-11-12 02:00:50 +01:00

More fixes to viewport/opengl disabling

This commit is contained in:
KillzXGaming 2019-04-22 19:44:12 -04:00
parent c7ee9ed16b
commit da8d56be47
2 changed files with 10 additions and 4 deletions

Binary file not shown.

View File

@ -344,9 +344,12 @@ namespace Switch_Toolbox.Library
return DDSCompressor.DecompressBC5(data, (int)Width, (int)Height, false);
else
{
Runtime.OpenTKInitialized = true;
LoadOpenGLTexture();
return RenderableTex.GLTextureToBitmap(RenderableTex);
if (Runtime.UseViewport)
{
Runtime.OpenTKInitialized = true;
LoadOpenGLTexture();
return RenderableTex.GLTextureToBitmap(RenderableTex);
}
}
}
catch
@ -611,7 +614,10 @@ namespace Switch_Toolbox.Library
dds.Save(dds, FileName, GetSurfaces());
}
public void LoadOpenGLTexture()
{
{
if (!Runtime.UseViewport)
return;
if (RenderableTex == null)
RenderableTex = new RenderableTex();