diff options
author | Sven Gothel <[email protected]> | 2012-03-18 16:33:07 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-18 16:33:07 +0100 |
commit | d570fa74d4fd22459aa1579749a7705949a2a748 (patch) | |
tree | 6e535ce86c531c36af3806789f778489e7c7a3dd /src/jogl/classes/jogamp/opengl/windows | |
parent | 4c5d6c1b5570fe1ba2cfbbed46259f0a21534ff5 (diff) |
Reduce Thread.dumpStack() in debug mode where no negative behavior appears or a stack trace may be helpful.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/windows')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java index a6ef9bd1c..ebe202f31 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java @@ -185,7 +185,6 @@ public class WindowsWGLContext extends GLContextImpl { System.err.println(getThreadName()+" - WindowWGLContext.createContextARBImpl: "+getGLVersion(major, minor, ctp, "@creation") + ", handle "+toHexString(drawable.getHandle()) + ", share "+toHexString(share)+", direct "+direct+ ", wglCreateContextAttribsARB: "+toHexString(wglExtProcAddressTable._addressof_wglCreateContextAttribsARB)); - Thread.dumpStack(); } boolean ctBwdCompat = 0 != ( CTX_PROFILE_COMPAT & ctp ) ; diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java index 51566d48d..f4069d430 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java @@ -165,7 +165,7 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl { if ( GDI.GetProcessAffinityMask(pid, procMask, sysMask) ) { if(DEBUG) { System.err.println("WindowsWGLDrawableFactory.enterThreadCriticalZone() - 0x" + Long.toHexString(pid) + " - " + Thread.currentThread().getName()); - Thread.dumpStack(); + // Thread.dumpStack(); } processAffinityChanges = pid; GDI.SetProcessAffinityMask(pid, 1); diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java index 4681a6ef7..2c8c03185 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java @@ -210,7 +210,6 @@ public class WindowsWGLGraphicsConfigurationFactory extends GLGraphicsConfigurat } if (DEBUG) { System.err.println("setPixelFormat (post): hdc "+toHexString(hdc) +", "+pfdID+" -> "+config.getPixelFormatID()+", set: "+set); - Thread.dumpStack(); } } } @@ -364,6 +363,7 @@ public class WindowsWGLGraphicsConfigurationFactory extends GLGraphicsConfigurat } if (null == pformats) { if (DEBUG) { + System.err.println("updateGraphicsConfigurationARB: failed, return false"); Thread.dumpStack(); } return false; @@ -476,6 +476,7 @@ public class WindowsWGLGraphicsConfigurationFactory extends GLGraphicsConfigurat int chosenIndex = chooseCapabilities(chooser, capsChosen, availableCaps, recommendedIndex); if ( 0 > chosenIndex ) { if (DEBUG) { + System.err.println("updateGraphicsConfigurationGDI: failed, return false"); Thread.dumpStack(); } return false; |