• 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
JvmTasksConfiguration.kt 22.2 KB