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
b53256b8
Commit
b53256b8
authored
Nov 04, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Call wglGetPixelFormat() through the gl_ops table.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c92451f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
context.c
dlls/wined3d/context.c
+4
-4
No files found.
dlls/wined3d/context.c
View file @
b53256b8
...
...
@@ -820,7 +820,7 @@ static BOOL context_set_pixel_format(struct wined3d_context *context, HDC dc, BO
if
(
dc
==
context
->
hdc
&&
context
->
hdc_is_private
&&
context
->
hdc_has_format
)
return
TRUE
;
current
=
GetPixelFormat
(
dc
);
current
=
gl_info
->
gl_ops
.
wgl
.
p_wgl
GetPixelFormat
(
dc
);
if
(
current
==
format
)
goto
success
;
if
(
!
current
)
...
...
@@ -1219,7 +1219,7 @@ static void context_enter(struct wined3d_context *context)
context
->
needs_set
=
1
;
}
else
if
(
!
context
->
needs_set
&&
!
(
context
->
hdc_is_private
&&
context
->
hdc_has_format
)
&&
context
->
pixel_format
!=
GetPixelFormat
(
context
->
hdc
))
&&
context
->
pixel_format
!=
context
->
gl_info
->
gl_ops
.
wgl
.
p_wgl
GetPixelFormat
(
context
->
hdc
))
context
->
needs_set
=
1
;
}
}
...
...
@@ -1588,10 +1588,10 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
goto
out
;
}
context_enter
(
ret
);
ret
->
gl_info
=
gl_info
;
context_enter
(
ret
);
if
(
!
context_set_pixel_format
(
ret
,
hdc
,
hdc_is_private
,
pixel_format
))
{
ERR
(
"Failed to set pixel format %d on device context %p.
\n
"
,
pixel_format
,
hdc
);
...
...
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