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
07946382
Commit
07946382
authored
Jun 21, 2017
by
Daniel Lehman
Committed by
Alexandre Julliard
Jun 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Don't fail with both PFD_DOUBLEBUFFER_DONTCARE and PFD_STEREO_DONTCARE.
Signed-off-by:
Daniel Lehman
<
dlehman@esri.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53ac5199
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
opengl.c
dlls/opengl32/tests/opengl.c
+1
-1
wgl.c
dlls/opengl32/wgl.c
+4
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
07946382
...
...
@@ -277,7 +277,7 @@ static void test_choosepixelformat(void)
pfd
.
dwFlags
|=
PFD_DOUBLEBUFFER_DONTCARE
;
ok
(
test_pfd
(
&
pfd
),
"PFD_DOUBLEBUFFER_DONTCARE failed
\n
"
);
pfd
.
dwFlags
|=
PFD_STEREO_DONTCARE
;
todo_wine
ok
(
test_pfd
(
&
pfd
),
"PFD_DOUBLEBUFFER_DONTCARE|PFD_STEREO_DONTCARE failed
\n
"
);
ok
(
test_pfd
(
&
pfd
),
"PFD_DOUBLEBUFFER_DONTCARE|PFD_STEREO_DONTCARE failed
\n
"
);
pfd
.
dwFlags
&=
~
PFD_DOUBLEBUFFER_DONTCARE
;
ok
(
test_pfd
(
&
pfd
),
"PFD_STEREO_DONTCARE failed
\n
"
);
pfd
.
dwFlags
&=
~
PFD_STEREO_DONTCARE
;
...
...
dlls/opengl32/wgl.c
View file @
07946382
...
...
@@ -517,6 +517,8 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd)
if
(
bestDBuffer
!=
-
1
&&
(
format
.
dwFlags
&
PFD_DOUBLEBUFFER
)
!=
bestDBuffer
)
continue
;
}
else
if
(
!
best_format
)
goto
found
;
/* Stereo, see the comments above. */
if
(
!
(
ppfd
->
dwFlags
&
PFD_STEREO_DONTCARE
))
...
...
@@ -527,6 +529,8 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd)
if
(
bestStereo
!=
-
1
&&
(
format
.
dwFlags
&
PFD_STEREO
)
!=
bestStereo
)
continue
;
}
else
if
(
!
best_format
)
goto
found
;
/* Below we will do a number of checks to select the 'best' pixelformat.
* We assume the precedence cColorBits > cAlphaBits > cDepthBits > cStencilBits -> cAuxBuffers.
...
...
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