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
a7d61285
Commit
a7d61285
authored
Mar 26, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify IWineD3DDeviceImpl_ProcessVertices().
parent
c1a42ff0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
24 deletions
+18
-24
device.c
dlls/wined3d/device.c
+18
-24
No files found.
dlls/wined3d/device.c
View file @
a7d61285
...
...
@@ -4680,30 +4680,24 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ProcessVertices(IWineD3DDevice *iface,
*
* Also get the start index in, but only loop over all elements if there's something to add at all.
*/
#define FIXSRC(type) \
if(strided.u.s.type.VBO) { \
struct wined3d_buffer *vb = (struct wined3d_buffer *)This->stateBlock->streamSource[strided.u.s.type.streamNo]; \
strided.u.s.type.VBO = 0; \
strided.u.s.type.lpData = (BYTE *) ((unsigned long) strided.u.s.type.lpData + (unsigned long) vb->resource.allocatedMemory); \
ENTER_GL(); \
GL_EXTCALL(glDeleteBuffersARB(1, &vb->buffer_object)); \
vb->buffer_object = 0; \
LEAVE_GL(); \
} \
if(strided.u.s.type.lpData) { \
strided.u.s.type.lpData += strided.u.s.type.dwStride * SrcStartIndex; \
}
FIXSRC
(
position
);
FIXSRC
(
blendWeights
);
FIXSRC
(
blendMatrixIndices
);
FIXSRC
(
normal
);
FIXSRC
(
pSize
);
FIXSRC
(
diffuse
);
FIXSRC
(
specular
);
for
(
i
=
0
;
i
<
WINED3DDP_MAXTEXCOORD
;
i
++
)
{
FIXSRC
(
texCoords
[
i
]);
}
#undef FIXSRC
for
(
i
=
0
;
i
<
(
sizeof
(
strided
.
u
.
input
)
/
sizeof
(
*
strided
.
u
.
input
));
++
i
)
{
if
(
strided
.
u
.
input
[
i
].
VBO
)
{
struct
wined3d_buffer
*
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
strided
.
u
.
input
[
i
].
streamNo
];
strided
.
u
.
input
[
i
].
VBO
=
0
;
strided
.
u
.
input
[
i
].
lpData
=
(
BYTE
*
)((
unsigned
long
)
strided
.
u
.
input
[
i
].
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
ENTER_GL
();
GL_EXTCALL
(
glDeleteBuffersARB
(
1
,
&
vb
->
buffer_object
));
vb
->
buffer_object
=
0
;
LEAVE_GL
();
}
if
(
strided
.
u
.
input
[
i
].
lpData
)
{
strided
.
u
.
input
[
i
].
lpData
+=
strided
.
u
.
input
[
i
].
dwStride
*
SrcStartIndex
;
}
}
}
return
process_vertices_strided
(
This
,
DestIndex
,
VertexCount
,
&
strided
,
...
...
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