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
ef6c6f9a
Commit
ef6c6f9a
authored
May 16, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the renderbuffer_entry_t typedef.
parent
0e0e5c3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
surface.c
dlls/wined3d/surface.c
+7
-7
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-3
No files found.
dlls/wined3d/surface.c
View file @
ef6c6f9a
...
...
@@ -48,8 +48,8 @@ static void surface_cleanup(struct wined3d_surface *surface)
if
(
surface
->
texture_name
||
(
surface
->
flags
&
SFLAG_PBO
)
||
!
list_empty
(
&
surface
->
renderbuffers
))
{
struct
wined3d_renderbuffer_entry
*
entry
,
*
entry2
;
const
struct
wined3d_gl_info
*
gl_info
;
renderbuffer_entry_t
*
entry
,
*
entry2
;
struct
wined3d_context
*
context
;
context
=
context_acquire
(
surface
->
resource
.
device
,
NULL
);
...
...
@@ -69,7 +69,7 @@ static void surface_cleanup(struct wined3d_surface *surface)
GL_EXTCALL
(
glDeleteBuffersARB
(
1
,
&
surface
->
pbo
));
}
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
surface
->
renderbuffers
,
renderbuffer_entry_t
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
surface
->
renderbuffers
,
struct
wined3d_renderbuffer_entry
,
entry
)
{
TRACE
(
"Deleting renderbuffer %u.
\n
"
,
entry
->
id
);
gl_info
->
fbo_ops
.
glDeleteRenderbuffers
(
1
,
&
entry
->
id
);
...
...
@@ -1529,9 +1529,9 @@ static void surface_remove_pbo(struct wined3d_surface *surface, const struct win
static
void
surface_unload
(
struct
wined3d_resource
*
resource
)
{
struct
wined3d_surface
*
surface
=
surface_from_resource
(
resource
);
struct
wined3d_renderbuffer_entry
*
entry
,
*
entry2
;
struct
wined3d_device
*
device
=
resource
->
device
;
const
struct
wined3d_gl_info
*
gl_info
;
renderbuffer_entry_t
*
entry
,
*
entry2
;
struct
wined3d_context
*
context
;
TRACE
(
"surface %p.
\n
"
,
surface
);
...
...
@@ -1571,7 +1571,7 @@ static void surface_unload(struct wined3d_resource *resource)
* all application-created targets the application has to release the surface
* before calling _Reset
*/
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
surface
->
renderbuffers
,
renderbuffer_entry_t
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
surface
->
renderbuffers
,
struct
wined3d_renderbuffer_entry
,
entry
)
{
ENTER_GL
();
gl_info
->
fbo_ops
.
glDeleteRenderbuffers
(
1
,
&
entry
->
id
);
...
...
@@ -2325,7 +2325,7 @@ static void surface_allocate_surface(struct wined3d_surface *surface, const stru
void
surface_set_compatible_renderbuffer
(
struct
wined3d_surface
*
surface
,
struct
wined3d_surface
*
rt
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
surface
->
resource
.
device
->
adapter
->
gl_info
;
renderbuffer_entry_t
*
entry
;
struct
wined3d_renderbuffer_entry
*
entry
;
GLuint
renderbuffer
=
0
;
unsigned
int
src_width
,
src_height
;
unsigned
int
width
,
height
;
...
...
@@ -2356,7 +2356,7 @@ void surface_set_compatible_renderbuffer(struct wined3d_surface *surface, struct
}
/* Look if we've already got a renderbuffer of the correct dimensions */
LIST_FOR_EACH_ENTRY
(
entry
,
&
surface
->
renderbuffers
,
renderbuffer_entry_t
,
entry
)
LIST_FOR_EACH_ENTRY
(
entry
,
&
surface
->
renderbuffers
,
struct
wined3d_renderbuffer_entry
,
entry
)
{
if
(
entry
->
width
==
width
&&
entry
->
height
==
height
)
{
...
...
@@ -2373,7 +2373,7 @@ void surface_set_compatible_renderbuffer(struct wined3d_surface *surface, struct
gl_info
->
fbo_ops
.
glRenderbufferStorage
(
GL_RENDERBUFFER
,
surface
->
resource
.
format
->
glInternal
,
width
,
height
);
entry
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
renderbuffer_entry_t
));
entry
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
entry
));
entry
->
width
=
width
;
entry
->
height
=
height
;
entry
->
id
=
renderbuffer
;
...
...
dlls/wined3d/wined3d_private.h
View file @
ef6c6f9a
...
...
@@ -1964,12 +1964,13 @@ typedef struct wineD3DSurface_DIB {
BOOL
client_memory
;
}
wineD3DSurface_DIB
;
typedef
struct
{
struct
wined3d_renderbuffer_entry
{
struct
list
entry
;
GLuint
id
;
UINT
width
;
UINT
height
;
}
renderbuffer_entry_t
;
};
struct
fbo_entry
{
...
...
@@ -2068,7 +2069,7 @@ struct wined3d_surface
WINEDDCOLORKEY
glCKey
;
struct
list
renderbuffers
;
renderbuffer_entry_t
*
current_renderbuffer
;
struct
wined3d_renderbuffer_entry
*
current_renderbuffer
;
SIZE
ds_current_size
;
/* DirectDraw clippers */
...
...
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