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
4dcd56f4
Commit
4dcd56f4
authored
Oct 01, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_state structure to remove_vbos().
parent
cf9d9e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drawprim.c
dlls/wined3d/drawprim.c
+4
-4
No files found.
dlls/wined3d/drawprim.c
View file @
4dcd56f4
...
...
@@ -537,8 +537,8 @@ static void drawStridedInstanced(const struct wined3d_gl_info *gl_info, const st
}
}
static
inline
void
remove_vbos
(
IWineD3DDeviceImpl
*
This
,
const
struct
wined3d_gl_info
*
gl_info
,
struct
wined3d_stream_info
*
s
)
static
void
remove_vbos
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_state
*
state
,
struct
wined3d_stream_info
*
s
)
{
unsigned
int
i
;
...
...
@@ -551,7 +551,7 @@ static inline void remove_vbos(IWineD3DDeviceImpl *This, const struct wined3d_gl
e
=
&
s
->
elements
[
i
];
if
(
e
->
buffer_object
)
{
struct
wined3d_buffer
*
vb
=
This
->
stateBlock
->
state
.
streams
[
e
->
stream_idx
].
buffer
;
struct
wined3d_buffer
*
vb
=
state
->
streams
[
e
->
stream_idx
].
buffer
;
e
->
buffer_object
=
0
;
e
->
data
=
(
BYTE
*
)((
ULONG_PTR
)
e
->
data
+
(
ULONG_PTR
)
buffer_get_sysmem
(
vb
,
gl_info
));
}
...
...
@@ -683,7 +683,7 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT StartIdx, UINT
if
(
emulation
)
{
stream_info
=
&
stridedlcl
;
memcpy
(
&
stridedlcl
,
&
This
->
strided_streams
,
sizeof
(
stridedlcl
));
remove_vbos
(
This
,
context
->
gl_info
,
&
stridedlcl
);
remove_vbos
(
context
->
gl_info
,
state
,
&
stridedlcl
);
}
}
...
...
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