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
c1a42ff0
Commit
c1a42ff0
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 remove_vbos().
parent
6afd97cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
42 deletions
+9
-42
drawprim.c
dlls/wined3d/drawprim.c
+9
-42
No files found.
dlls/wined3d/drawprim.c
View file @
c1a42ff0
...
...
@@ -681,49 +681,16 @@ static inline void drawStridedInstanced(IWineD3DDevice *iface, const WineDirect3
}
static
inline
void
remove_vbos
(
IWineD3DDeviceImpl
*
This
,
WineDirect3DVertexStridedData
*
s
)
{
unsigned
char
i
;
struct
wined3d_buffer
*
vb
;
unsigned
int
i
;
if
(
s
->
u
.
s
.
position
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
position
.
streamNo
];
s
->
u
.
s
.
position
.
VBO
=
0
;
s
->
u
.
s
.
position
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
position
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
if
(
s
->
u
.
s
.
blendWeights
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
blendWeights
.
streamNo
];
s
->
u
.
s
.
blendWeights
.
VBO
=
0
;
s
->
u
.
s
.
blendWeights
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
blendWeights
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
if
(
s
->
u
.
s
.
blendMatrixIndices
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
blendMatrixIndices
.
streamNo
];
s
->
u
.
s
.
blendMatrixIndices
.
VBO
=
0
;
s
->
u
.
s
.
blendMatrixIndices
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
blendMatrixIndices
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
if
(
s
->
u
.
s
.
normal
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
normal
.
streamNo
];
s
->
u
.
s
.
normal
.
VBO
=
0
;
s
->
u
.
s
.
normal
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
normal
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
if
(
s
->
u
.
s
.
pSize
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
pSize
.
streamNo
];
s
->
u
.
s
.
pSize
.
VBO
=
0
;
s
->
u
.
s
.
pSize
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
pSize
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
if
(
s
->
u
.
s
.
diffuse
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
diffuse
.
streamNo
];
s
->
u
.
s
.
diffuse
.
VBO
=
0
;
s
->
u
.
s
.
diffuse
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
diffuse
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
if
(
s
->
u
.
s
.
specular
.
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
specular
.
streamNo
];
s
->
u
.
s
.
specular
.
VBO
=
0
;
s
->
u
.
s
.
specular
.
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
specular
.
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
for
(
i
=
0
;
i
<
WINED3DDP_MAXTEXCOORD
;
i
++
)
{
if
(
s
->
u
.
s
.
texCoords
[
i
].
VBO
)
{
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
s
.
texCoords
[
i
].
streamNo
];
s
->
u
.
s
.
texCoords
[
i
].
VBO
=
0
;
s
->
u
.
s
.
texCoords
[
i
].
lpData
=
(
BYTE
*
)
((
unsigned
long
)
s
->
u
.
s
.
texCoords
[
i
].
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
for
(
i
=
0
;
i
<
(
sizeof
(
s
->
u
.
input
)
/
sizeof
(
*
s
->
u
.
input
));
++
i
)
{
if
(
s
->
u
.
input
[
i
].
VBO
)
{
struct
wined3d_buffer
*
vb
=
(
struct
wined3d_buffer
*
)
This
->
stateBlock
->
streamSource
[
s
->
u
.
input
[
i
].
streamNo
];
s
->
u
.
input
[
i
].
VBO
=
0
;
s
->
u
.
input
[
i
].
lpData
=
(
BYTE
*
)((
unsigned
long
)
s
->
u
.
input
[
i
].
lpData
+
(
unsigned
long
)
vb
->
resource
.
allocatedMemory
);
}
}
}
...
...
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