mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
opengl: warn if gpu vendor is not known
This commit is contained in:
parent
968c974bde
commit
91619d3945
@ -14,6 +14,9 @@
|
|||||||
package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
|
package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
|
||||||
|
|
||||||
import de.bixilon.minosoft.gui.rendering.system.base.GPUVendor
|
import de.bixilon.minosoft.gui.rendering.system.base.GPUVendor
|
||||||
|
import de.bixilon.minosoft.util.logging.Log
|
||||||
|
import de.bixilon.minosoft.util.logging.LogLevels
|
||||||
|
import de.bixilon.minosoft.util.logging.LogMessageType
|
||||||
|
|
||||||
interface OpenGLVendor : GPUVendor {
|
interface OpenGLVendor : GPUVendor {
|
||||||
val usedVRAM: Long
|
val usedVRAM: Long
|
||||||
@ -30,7 +33,10 @@ interface OpenGLVendor : GPUVendor {
|
|||||||
"nvidia" in vendor -> NvidiaOpenGLVendor
|
"nvidia" in vendor -> NvidiaOpenGLVendor
|
||||||
"intel" in vendor -> IntelOpenGLVendor
|
"intel" in vendor -> IntelOpenGLVendor
|
||||||
"amd" in vendor || "ati" in vendor -> AMDOpenGLVendor
|
"amd" in vendor || "ati" in vendor -> AMDOpenGLVendor
|
||||||
else -> OtherOpenGLVendor
|
else -> {
|
||||||
|
Log.log(LogMessageType.RENDERING, LogLevels.WARN) { "Can not detect gpu type from vendor: $vendor" }
|
||||||
|
OtherOpenGLVendor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user