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
5e932efb
Commit
5e932efb
authored
Aug 15, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove the redundant pixel format index from the pixel format object.
parent
451828e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
opengl.c
dlls/winex11.drv/opengl.c
+2
-7
No files found.
dlls/winex11.drv/opengl.c
View file @
5e932efb
...
...
@@ -133,7 +133,6 @@ struct WineGLInfo {
struct
wgl_pixel_format
{
int
iPixelFormat
;
GLXFBConfig
fbconfig
;
int
fmt_id
;
int
render_type
;
...
...
@@ -964,7 +963,6 @@ static void init_pixel_formats( Display *display )
}
TRACE
(
"Found onscreen format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d
\n
"
,
fmt_id
,
size
+
1
,
i
);
list
[
size
].
iPixelFormat
=
size
+
1
;
/* The index starts at 1 */
list
[
size
].
fbconfig
=
cfgs
[
i
];
list
[
size
].
fmt_id
=
fmt_id
;
list
[
size
].
render_type
=
get_render_type_from_fbconfig
(
display
,
cfgs
[
i
]);
...
...
@@ -976,7 +974,6 @@ static void init_pixel_formats( Display *display )
if
(
check_fbconfig_bitmap_capability
(
display
,
cfgs
[
i
]))
{
TRACE
(
"Found bitmap capable format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d
\n
"
,
fmt_id
,
size
+
1
,
i
);
list
[
size
].
iPixelFormat
=
size
+
1
;
/* The index starts at 1 */
list
[
size
].
fbconfig
=
cfgs
[
i
];
list
[
size
].
fmt_id
=
fmt_id
;
list
[
size
].
render_type
=
get_render_type_from_fbconfig
(
display
,
cfgs
[
i
]);
...
...
@@ -1001,7 +998,6 @@ static void init_pixel_formats( Display *display )
}
TRACE
(
"Found offscreen format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d
\n
"
,
fmt_id
,
size
+
1
,
i
);
list
[
size
].
iPixelFormat
=
size
+
1
;
/* The index starts at 1 */
list
[
size
].
fbconfig
=
cfgs
[
i
];
list
[
size
].
fmt_id
=
fmt_id
;
list
[
size
].
render_type
=
get_render_type_from_fbconfig
(
display
,
cfgs
[
i
]);
...
...
@@ -1469,10 +1465,9 @@ static BOOL glxdrv_wglMakeCurrent(HDC hdc, struct wgl_context *ctx)
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
ctx
->
fmt
->
iPixelFormat
!=
escape
.
pixel_format
)
if
(
ctx
->
fmt
-
pixel_formats
!=
escape
.
pixel_format
-
1
)
{
WARN
(
"mismatched pixel format hdc %p %u ctx %p %u
\n
"
,
hdc
,
escape
.
pixel_format
,
ctx
,
ctx
->
fmt
->
iPixelFormat
);
WARN
(
"mismatched pixel format hdc %p %u ctx %p
\n
"
,
hdc
,
escape
.
pixel_format
,
ctx
);
SetLastError
(
ERROR_INVALID_PIXEL_FORMAT
);
return
FALSE
;
}
...
...
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