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
be993fc4
Commit
be993fc4
authored
Apr 15, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store render target attachments as IWineD3DSurfaceImpl pointers in struct fbo_entry.
parent
24c93d48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
context.c
dlls/wined3d/context.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/context.c
View file @
be993fc4
...
...
@@ -300,7 +300,7 @@ static void context_check_fbo_status(struct wined3d_context *context)
/* Dump the FBO attachments */
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
{
attachment
=
(
IWineD3DSurfaceImpl
*
)
context
->
current_fbo
->
render_targets
[
i
];
attachment
=
context
->
current_fbo
->
render_targets
[
i
];
if
(
attachment
)
{
FIXME
(
"
\t
Color attachment %d: (%p) %s %ux%u
\n
"
,
...
...
@@ -638,7 +638,7 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
for
(
j
=
0
;
j
<
gl_info
->
limits
.
buffers
;
++
j
)
{
if
(
entry
->
render_targets
[
j
]
==
(
IWineD3DSurface
*
)
resource
)
if
(
entry
->
render_targets
[
j
]
==
(
IWineD3DSurface
Impl
*
)
resource
)
{
list_remove
(
&
entry
->
entry
);
list_add_head
(
&
context
->
fbo_destroy_list
,
&
entry
->
entry
);
...
...
@@ -666,7 +666,7 @@ void context_surface_update(struct wined3d_context *context, IWineD3DSurfaceImpl
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
{
if
(
surface
==
(
IWineD3DSurfaceImpl
*
)
entry
->
render_targets
[
i
])
if
(
surface
==
entry
->
render_targets
[
i
])
{
TRACE
(
"Updated surface %p is bound as color attachment %u to the current FBO.
\n
"
,
surface
,
i
);
context
->
rebind_fbo
=
TRUE
;
...
...
dlls/wined3d/wined3d_private.h
View file @
be993fc4
...
...
@@ -2022,7 +2022,7 @@ typedef struct {
struct
fbo_entry
{
struct
list
entry
;
IWineD3DSurface
**
render_targets
;
IWineD3DSurface
Impl
**
render_targets
;
IWineD3DSurface
*
depth_stencil
;
BOOL
attached
;
GLuint
id
;
...
...
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