Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9e73f7a6
Commit
9e73f7a6
authored
Jun 06, 2012
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Limit formats to nMaxFormats in wglChoosePixelFormatARB.
parent
b168da77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
opengl.c
dlls/winex11.drv/opengl.c
+2
-3
No files found.
dlls/winex11.drv/opengl.c
View file @
9e73f7a6
...
@@ -2906,7 +2906,8 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
...
@@ -2906,7 +2906,8 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
* Note that this function should at max return nMaxFormats different formats */
* Note that this function should at max return nMaxFormats different formats */
for
(
run
=
0
;
run
<
2
;
run
++
)
for
(
run
=
0
;
run
<
2
;
run
++
)
{
{
for
(
it
=
0
;
it
<
nCfgs
;
++
it
)
{
for
(
it
=
0
;
it
<
nCfgs
&&
pfmt_it
<
nMaxFormats
;
++
it
)
{
gl_test
=
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
it
],
GLX_FBCONFIG_ID
,
&
fmt_id
);
gl_test
=
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
it
],
GLX_FBCONFIG_ID
,
&
fmt_id
);
if
(
gl_test
)
{
if
(
gl_test
)
{
ERR
(
"Failed to retrieve FBCONFIG_ID from GLXFBConfig, expect problems.
\n
"
);
ERR
(
"Failed to retrieve FBCONFIG_ID from GLXFBConfig, expect problems.
\n
"
);
...
@@ -2922,10 +2923,8 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
...
@@ -2922,10 +2923,8 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
if
(
((
run
==
0
)
&&
fmt
->
offscreenOnly
)
||
((
run
==
1
)
&&
!
fmt
->
offscreenOnly
)
)
if
(
((
run
==
0
)
&&
fmt
->
offscreenOnly
)
||
((
run
==
1
)
&&
!
fmt
->
offscreenOnly
)
)
continue
;
continue
;
if
(
pfmt_it
<
nMaxFormats
)
{
piFormats
[
pfmt_it
]
=
fmt
->
iPixelFormat
;
piFormats
[
pfmt_it
]
=
fmt
->
iPixelFormat
;
TRACE
(
"at %d/%d found FBCONFIG_ID 0x%x (%d)
\n
"
,
it
+
1
,
nCfgs
,
fmt_id
,
piFormats
[
pfmt_it
]);
TRACE
(
"at %d/%d found FBCONFIG_ID 0x%x (%d)
\n
"
,
it
+
1
,
nCfgs
,
fmt_id
,
piFormats
[
pfmt_it
]);
}
pfmt_it
++
;
pfmt_it
++
;
}
}
}
}
...
...
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