Skip to content

gdkmacosglcontext: fix compilation error

Tom Schoonjans requested to merge tschoonj/gtk:gdkmacosglcontext-fix into master

This fixes the following compilation error:

../gdk/macos/gdkmacosglcontext.c:107:5: error: cast to smaller integer type 'NSOpenGLPixelFormatAttribute' (aka 'unsigned int') from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
    (NSOpenGLPixelFormatAttribute)nil
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

See https://developer.apple.com/documentation/appkit/nsopenglpixelformat/1436219-initwithattributes?language=occ

Merge request reports