diff --git a/src/SFML/Window/Unix/GlxContext.cpp b/src/SFML/Window/Unix/GlxContext.cpp index 9a890695..eac6099e 100644 --- a/src/SFML/Window/Unix/GlxContext.cpp +++ b/src/SFML/Window/Unix/GlxContext.cpp @@ -234,10 +234,10 @@ void GlxContext::createContext(GlxContext* shared, unsigned int bitsPerPixel, co int nbConfigs = 0; int fbAttributes[] = { - GLX_DEPTH_SIZE, settings.depthBits, - GLX_STENCIL_SIZE, settings.stencilBits, + GLX_DEPTH_SIZE, static_cast(settings.depthBits), + GLX_STENCIL_SIZE, static_cast(settings.stencilBits), GLX_SAMPLE_BUFFERS, settings.antialiasingLevel > 0, - GLX_SAMPLES, settings.antialiasingLevel, + GLX_SAMPLES, static_cast(settings.antialiasingLevel), GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8,