• Igor Demin's avatar
    Fix "ComposePanel doesn't use hardware acceleration with... · 67e0c0b8
    Igor Demin authored
    Fix "ComposePanel doesn't use hardware acceleration with RenderSettings.SwingGraphics on Linux" (#1103)
    
    Fixes https://youtrack.jetbrains.com/issue/CMP-8936
    
    `glXChooseFBConfig` fails to find a config with `GLX_DOUBLEBUFFER,
    False` on my machine, it only has double buffered configs. But
    double/single buffering doesn't matter as we use pixel buffers.
    
    Also choose a correct config that is required by
    https://registry.khronos.org/OpenGL-Refpages/gl2.1/xhtml/glXCreatePbuffer.xml:
    ```
    BadMatch is generated if config does not support rendering to pixel buffers (e.g., GLX_DRAWABLE_TYPE does not contain GLX_PBUFFER_BIT)
    ```
    
    ## Testing
    - manually, in the clocks example
    - the modified test failed before the fix, now it doesn't fail
    
    ## Release Notes (Skiko)
    Fix "SkiaSwingLayer doesn't use hardware acceleration on Linux"
    
    ## Release Notes (Compose)
    ### Fixes - Desktop 
    Fix "ComposePanel doesn't use hardware acceleration with
    RenderSettings.SwingGraphics on Linux"
    67e0c0b8
Name
Last commit
Last update
.github Loading commit data...
.run Loading commit data...
gradle/wrapper Loading commit data...
samples Loading commit data...
skiko Loading commit data...
.gitignore Loading commit data...
DEVELOPMENT.md Loading commit data...
LICENSE Loading commit data...
NOTICE Loading commit data...
README.md Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle.kts Loading commit data...