improve the error reporting in GlProxy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user