improve the error reporting in GlProxy

This commit is contained in:
James Seibel
2021-09-22 21:50:05 -05:00
parent b9424cbe9f
commit 0a9ea1dfce
@@ -131,7 +131,13 @@ public class GlProxy
throw new IllegalStateException("Unable to change OpenGL contexts! tried to change to [" + newContext.toString() + "] from [" + currentContext.toString() + "] on thread: [" + Thread.currentThread().getName() + "] lod builder owner thread: " + (lodBuilderOwnerThread != null ? lodBuilderOwnerThread.getName() : "null"));
if (newContext == GlProxyContext.LOD_BUILDER)
{
lodBuilderOwnerThread = Thread.currentThread();
}
else if (newContext == GlProxyContext.NONE && currentContext == GlProxyContext.LOD_BUILDER)
{
lodBuilderOwnerThread = null;
}
GL.setCapabilities(newGlCapabilities);
}