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
c82423df
Commit
c82423df
authored
May 06, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
May 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the "target" parameter to wined3d_context_init().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
186ae1ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
context.c
dlls/wined3d/context.c
+3
-4
No files found.
dlls/wined3d/context.c
View file @
c82423df
...
...
@@ -1910,8 +1910,7 @@ HGLRC context_create_wgl_attribs(const struct wined3d_gl_info *gl_info, HDC hdc,
return
ctx
;
}
static
BOOL
wined3d_context_init
(
struct
wined3d_context
*
context
,
struct
wined3d_swapchain
*
swapchain
,
struct
wined3d_texture
*
target
,
const
struct
wined3d_format
*
ds_format
)
static
BOOL
wined3d_context_init
(
struct
wined3d_context
*
context
,
struct
wined3d_swapchain
*
swapchain
)
{
struct
wined3d_device
*
device
=
swapchain
->
device
;
DWORD
state
;
...
...
@@ -1952,7 +1951,7 @@ static BOOL wined3d_context_init(struct wined3d_context *context, struct wined3d
context
->
device
=
device
;
context
->
swapchain
=
swapchain
;
context
->
current_rt
.
texture
=
target
;
context
->
current_rt
.
texture
=
swapchain
->
front_buffer
;
context
->
current_rt
.
sub_resource_idx
=
0
;
context
->
tid
=
GetCurrentThreadId
();
...
...
@@ -1981,7 +1980,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain, cons
return
NULL
;
context
=
&
context_gl
->
c
;
if
(
!
(
wined3d_context_init
(
context
,
swapchain
,
target
,
ds_format
)))
if
(
!
(
wined3d_context_init
(
context
,
swapchain
)))
{
heap_free
(
context_gl
);
return
NULL
;
...
...
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