Make cleanable trace-log not closed OpenGL objects
This commit is contained in:
parent
023995c7f6
commit
4198483974
@ -216,8 +216,8 @@ class GLStateTracker {
|
||||
var cleanManual = false
|
||||
|
||||
val cleanable = cleaner.register(ref) {
|
||||
if (!cleanManual)
|
||||
LOGGER.error("{} with ID {} was GC'd by JVM, but it should have been removed manually.", name, nativeRef)
|
||||
if (!cleanManual && LOGGER.isTraceEnabled)
|
||||
LOGGER.trace("{} with ID {} was GC'd by JVM, without manually calling close()", name, nativeRef)
|
||||
|
||||
synchronized(cleanerHits) {
|
||||
cleanerHits.add {
|
||||
|
Loading…
Reference in New Issue
Block a user