diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 288e75a5..5cb9c057 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -599,6 +599,7 @@ void WindowImplWin32::CreateContext(const VideoMode& Mode, WindowSettings& Param PixelDescriptor.cColorBits = static_cast(Mode.BitsPerPixel); PixelDescriptor.cDepthBits = static_cast(Params.DepthBits); PixelDescriptor.cStencilBits = static_cast(Params.StencilBits); + PixelDescriptor.cAlphaBits = Mode.BitsPerPixel == 32 ? 8 : 0; // Get the pixel format that best matches our requirements BestFormat = ChoosePixelFormat(myDeviceContext, &PixelDescriptor);