[PATCH v2 0/2] MR132: opengl32: Don't prioritize low bit depth formats with non-matching stencil.

Paul Gofman (@gofman) wine at gitlab.winehq.org
Tue Jun 21 10:30:21 CDT 2022


Fixes ClaDun X2 missing rendering parts on AMD. The GL game uses stencil and requests pixel format with depth 16, stencil 8. On Wine / AMD that ends up with 16x0 format as there is no 16x8 advertised (16x0 only) and depth takes absolute priority. On the same Windows machine I see both 16x0 and 16x8 formats, but when 16x8 is requested 24x8 is returned (and 16x0 if 16x0 is requested).

That currently works under Wine / Nvidia because there is no 16 bit depth formats advertised at all and it ends up with 24x8 without this patch.

--
  v2: opengl32/tests: Add more tests for ChoosePixelFormat().
      opengl32: Prioritize stencil check over depth check in wglChoosePixelFormat().
 
https://gitlab.winehq.org/wine/wine/-/merge_requests/132



More information about the wine-devel mailing list