Unverified Commit 9ccc6234 authored by Roman Sedaikin's avatar Roman Sedaikin Committed by GitHub

Fixed fallback and transparency support on VM linux. (#257)

parent 9faacd53
......@@ -78,7 +78,6 @@ extern "C"
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
GLX_ALPHA_SIZE, 8,
GLX_DEPTH_SIZE, 32,
GLX_DOUBLEBUFFER, True, None
};
vi = glXChooseVisual(display, 0, att);
......
......@@ -15,7 +15,9 @@ internal fun isVideoCardSupported(renderApi: GraphicsApi): Boolean {
val adaptersList = notSupportedAdapters.filter { it.startsWith("opengl:") }.map {
it.replace("opengl:", "")
}
var adapter = gl.glGetString(gl.GL_RENDERER)
var adapter = gl.glGetString(gl.GL_RENDERER).also {
if (it == null) { return false }
}
adaptersList.forEach {
if (adapter.startsWith(it)) {
return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment