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
3c448b5d
Commit
3c448b5d
authored
Jun 17, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_context_gl structure to context_create_fbo_entry().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c649116
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 @
3c448b5d
...
...
@@ -514,12 +514,11 @@ static void wined3d_context_gl_generate_fbo_key(const struct wined3d_context_gl
memset
(
&
key
->
objects
[
buffers
+
1
],
0
,
(
ARRAY_SIZE
(
key
->
objects
)
-
buffers
-
1
)
*
sizeof
(
*
key
->
objects
));
}
static
struct
fbo_entry
*
context_create_fbo_entry
(
const
struct
wined3d_context
*
context
,
static
struct
fbo_entry
*
wined3d_context_gl_create_fbo_entry
(
const
struct
wined3d_context_gl
*
context_gl
,
const
struct
wined3d_rendertarget_info
*
render_targets
,
const
struct
wined3d_rendertarget_info
*
depth_stencil
,
DWORD
color_location
,
DWORD
ds_location
)
{
const
struct
wined3d_context_gl
*
context_gl
=
wined3d_context_gl_const
(
context
);
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
const
struct
wined3d_gl_info
*
gl_info
=
context_gl
->
c
.
gl_info
;
struct
fbo_entry
*
entry
;
entry
=
heap_alloc
(
sizeof
(
*
entry
));
...
...
@@ -691,7 +690,8 @@ static struct fbo_entry *wined3d_context_gl_find_fbo_entry(struct wined3d_contex
if
(
context_gl
->
fbo_entry_count
<
WINED3D_MAX_FBO_ENTRIES
)
{
entry
=
context_create_fbo_entry
(
&
context_gl
->
c
,
render_targets
,
depth_stencil
,
color_location
,
ds_location
);
entry
=
wined3d_context_gl_create_fbo_entry
(
context_gl
,
render_targets
,
depth_stencil
,
color_location
,
ds_location
);
list_add_head
(
&
context_gl
->
fbo_list
,
&
entry
->
entry
);
++
context_gl
->
fbo_entry_count
;
}
...
...
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