This MR adds a test that fails on Wine. It's not an easy fix because the Windows 16 bit OpenGL software renderer is pretty quirky and works differently from Linux OpenGL drivers, I'll make an issue in Bugzilla.
Wine output:
```
opengl.c:1863: Tests skipped: Skipping 16-bit rendering test (no 16 bit pixel format with the DRAW_TO_BITMAP flag was available)
```
Wine output without `todo_wine` and the skip:
```
opengl.c:1860: Test failed: Failed to get a 16-bit DRAW_TO_BITMAP pixel format
opengl.c:1869: Test failed: Failed to DescribePixelFormat (error: 2000)
opengl.c:1872: Test failed: Wrong amount of color bits (got 0, expected 16)
opengl.c:1888: Test failed: Failed to SetPixelFormat (error: 2000)
opengl.c:1892: Test failed: Failed to wglCreateContext (error: 2000)
0024:err:opengl:null_glClearColor unsupported
0024:err:opengl:null_glClear unsupported
0024:err:opengl:null_glFinish unsupported
0024:err:opengl:null_glMatrixMode unsupported
0024:err:opengl:null_glLoadIdentity unsupported
0024:err:opengl:null_glOrtho unsupported
0024:err:opengl:null_glMatrixMode unsupported
0024:err:opengl:null_glLoadIdentity unsupported
0024:err:opengl:null_glClearColor unsupported
0024:err:opengl:null_glClear unsupported
0024:err:opengl:null_glColor3f unsupported
0024:err:opengl:null_glLineWidth unsupported
0024:err:opengl:null_glBegin unsupported
0024:err:opengl:null_glVertex2i unsupported
0024:err:opengl:null_glVertex2i unsupported
0024:err:opengl:null_glEnd unsupported
0024:err:opengl:null_glFinish unsupported
```
--
v5: opengl32/tests: Add 16-bit bitmap rendering tests
https://gitlab.winehq.org/wine/wine/-/merge_requests/8888
Signed-off-by: YeshunYe <yeyeshun(a)uniontech.com>
Change-Id: I2a8099278fae6dcc45bc92fb1f1f606407fba000
Although MSDN does not mention that CreateFile can be used to create folders, it is actually supported.
Verified on WinXP, Win7, and Win10.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8033
On Wed Sep 3 07:54:47 2025 +0000, Zowie van Dillen wrote:
> changed this line in [version 4 of the diff](/wine/wine/-/merge_requests/8888/diffs?diff_id=205475&start_sha=6d04817cc82642e35e110ba5b6d8f6989d0f3abf#8a2ee3809135d1f9c83c27e21ca761ef9ed76cee_1893_1890)
Alright, I've removed it.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8888#note_114651
This MR adds a test that fails on Wine. It's not an easy fix because the Windows 16 bit OpenGL software renderer is pretty quirky and works differently from Linux OpenGL drivers, I'll make an issue in Bugzilla.
Wine output:
```
opengl.c:1863: Tests skipped: Skipping 16-bit rendering test (no 16 bit pixel format with the DRAW_TO_BITMAP flag was available)
```
Wine output without `todo_wine` and the skip:
```
opengl.c:1860: Test failed: Failed to get a 16-bit DRAW_TO_BITMAP pixel format
opengl.c:1869: Test failed: Failed to DescribePixelFormat (error: 2000)
opengl.c:1872: Test failed: Wrong amount of color bits (got 0, expected 16)
opengl.c:1888: Test failed: Failed to SetPixelFormat (error: 2000)
opengl.c:1892: Test failed: Failed to wglCreateContext (error: 2000)
0024:err:opengl:null_glClearColor unsupported
0024:err:opengl:null_glClear unsupported
0024:err:opengl:null_glFinish unsupported
0024:err:opengl:null_glMatrixMode unsupported
0024:err:opengl:null_glLoadIdentity unsupported
0024:err:opengl:null_glOrtho unsupported
0024:err:opengl:null_glMatrixMode unsupported
0024:err:opengl:null_glLoadIdentity unsupported
0024:err:opengl:null_glClearColor unsupported
0024:err:opengl:null_glClear unsupported
0024:err:opengl:null_glColor3f unsupported
0024:err:opengl:null_glLineWidth unsupported
0024:err:opengl:null_glBegin unsupported
0024:err:opengl:null_glVertex2i unsupported
0024:err:opengl:null_glVertex2i unsupported
0024:err:opengl:null_glEnd unsupported
0024:err:opengl:null_glFinish unsupported
```
--
v3: opengl32/tests: Add 16-bit bitmap rendering tests
https://gitlab.winehq.org/wine/wine/-/merge_requests/8888
This MR adds a test that fails on Wine. It's not an easy fix because the Windows 16 bit OpenGL software renderer is pretty quirky and works differently from Linux OpenGL drivers, I'll make an issue in Bugzilla.
Wine output:
```
opengl.c:1863: Tests skipped: Skipping 16-bit rendering test (no 16 bit pixel format with the DRAW_TO_BITMAP flag was available)
```
Wine output without `todo_wine` and the skip:
```
opengl.c:1860: Test failed: Failed to get a 16-bit DRAW_TO_BITMAP pixel format
opengl.c:1869: Test failed: Failed to DescribePixelFormat (error: 2000)
opengl.c:1872: Test failed: Wrong amount of color bits (got 0, expected 16)
opengl.c:1888: Test failed: Failed to SetPixelFormat (error: 2000)
opengl.c:1892: Test failed: Failed to wglCreateContext (error: 2000)
0024:err:opengl:null_glClearColor unsupported
0024:err:opengl:null_glClear unsupported
0024:err:opengl:null_glFinish unsupported
0024:err:opengl:null_glMatrixMode unsupported
0024:err:opengl:null_glLoadIdentity unsupported
0024:err:opengl:null_glOrtho unsupported
0024:err:opengl:null_glMatrixMode unsupported
0024:err:opengl:null_glLoadIdentity unsupported
0024:err:opengl:null_glClearColor unsupported
0024:err:opengl:null_glClear unsupported
0024:err:opengl:null_glColor3f unsupported
0024:err:opengl:null_glLineWidth unsupported
0024:err:opengl:null_glBegin unsupported
0024:err:opengl:null_glVertex2i unsupported
0024:err:opengl:null_glVertex2i unsupported
0024:err:opengl:null_glEnd unsupported
0024:err:opengl:null_glFinish unsupported
```
--
v2: opengl32/tests: Add 16-bit bitmap rendering tests
https://gitlab.winehq.org/wine/wine/-/merge_requests/8888
work is still in progress.
todo:
- ensure that all affected sources (i.e. C sources with any kind of assembly) are listed in either way for all architectures
- test Wine built with LTO
relevant bug reports:
- https://bugs.winehq.org/show_bug.cgi?id=41712
- https://bugs.winehq.org/show_bug.cgi?id=51051
--
v12: LTO quirks
makedep: support skipping/disabling LTO
configure: enable building Wine with LTO
makedep: support LTO builds
winegcc: support LTO builds
winebuild: support LTO builds
tools: helper functions for LTO builds
ntdll: add attribute "used" to a few symbols that shouldn't be discarded
loader: add attribute "used" to a few symbols that shouldn't be discarded
https://gitlab.winehq.org/wine/wine/-/merge_requests/7111