Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
075f8cfe
Commit
075f8cfe
authored
May 10, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
May 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix X11DRV_ChoosePixelFormat to choose 24 bpp as 32 bpp for depth
buffers (needed as many X11 drivers only support 24bpp).
parent
5e1b4185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
opengl.c
dlls/x11drv/opengl.c
+9
-1
No files found.
dlls/x11drv/opengl.c
View file @
075f8cfe
...
...
@@ -203,7 +203,15 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
if
(
ppfd
->
iPixelType
==
PFD_TYPE_RGBA
)
{
ADD2
(
GLX_RENDER_TYPE
,
GLX_RGBA_BIT
);
ADD2
(
GLX_BUFFER_SIZE
,
ppfd
->
cColorBits
);
TEST_AND_ADD2
(
ppfd
->
cDepthBits
,
GLX_DEPTH_SIZE
,
ppfd
->
cDepthBits
);
if
(
32
==
ppfd
->
cDepthBits
)
{
/**
* for 32 bpp depth buffers force to use 24.
* needed as some drivers don't support 32bpp
*/
TEST_AND_ADD2
(
ppfd
->
cDepthBits
,
GLX_DEPTH_SIZE
,
24
);
}
else
{
TEST_AND_ADD2
(
ppfd
->
cDepthBits
,
GLX_DEPTH_SIZE
,
ppfd
->
cDepthBits
);
}
TEST_AND_ADD2
(
ppfd
->
cAlphaBits
,
GLX_ALPHA_SIZE
,
ppfd
->
cAlphaBits
);
}
TEST_AND_ADD2
(
ppfd
->
cStencilBits
,
GLX_STENCIL_SIZE
,
ppfd
->
cStencilBits
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment