Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
9ccc6234
Unverified
Commit
9ccc6234
authored
Oct 12, 2021
by
Roman Sedaikin
Committed by
GitHub
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fallback and transparency support on VM linux. (#257)
parent
9faacd53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
redrawer.cc
skiko/src/jvmMain/cpp/linux/redrawer.cc
+0
-1
GraphicsApi.jvm.kt
...src/jvmMain/kotlin/org/jetbrains/skiko/GraphicsApi.jvm.kt
+3
-1
No files found.
skiko/src/jvmMain/cpp/linux/redrawer.cc
View file @
9ccc6234
...
...
@@ -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
);
...
...
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/GraphicsApi.jvm.kt
View file @
9ccc6234
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment