More fixes to viewport/opengl disabling
This commit is contained in:
parent
c7ee9ed16b
commit
da8d56be47
Binary file not shown.
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user