From f3dd99e792693da3f9b5d091abaef496a2824e8b Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 18 Sep 2021 09:38:51 -0500 Subject: [PATCH] Improve error message in GlProxy --- src/main/java/com/seibel/lod/proxy/GlProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/seibel/lod/proxy/GlProxy.java b/src/main/java/com/seibel/lod/proxy/GlProxy.java index c87457d3e..71f928495 100644 --- a/src/main/java/com/seibel/lod/proxy/GlProxy.java +++ b/src/main/java/com/seibel/lod/proxy/GlProxy.java @@ -128,7 +128,7 @@ public class GlProxy } if (!WGL.wglMakeCurrent(deviceContext, contextPointer)) - throw new IllegalStateException("Unable to change OpenGL contexts! tried to change to [" + newContext.toString() + "] from [" + currentContext.toString() + "] lod builder owner thread: " + (lodBuilderOwnerThread != null ? lodBuilderOwnerThread.getName() : "null")); + 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();