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
b22ca33a
Commit
b22ca33a
authored
Mar 12, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: 11 space indent is ugly.
parent
23cd4475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
drawprim.c
dlls/wined3d/drawprim.c
+19
-19
No files found.
dlls/wined3d/drawprim.c
View file @
b22ca33a
...
...
@@ -207,25 +207,25 @@ void primitiveDeclarationConvertToStridedData(
stride_used
=
fixed_get_input
(
element
->
Usage
,
element
->
UsageIndex
,
&
idx
);
if
(
stride_used
)
{
TRACE
(
"Loaded %s array %u [usage=%s, usage_idx=%u, "
"stream=%u, offset=%u, stride=%u, VBO=%u]
\n
"
,
useVertexShaderFunction
?
"shader"
:
"fixed function"
,
idx
,
debug_d3ddeclusage
(
element
->
Usage
),
element
->
UsageIndex
,
element
->
Stream
,
element
->
Offset
,
stride
,
streamVBO
);
strided
->
u
.
input
[
idx
].
lpData
=
data
;
strided
->
u
.
input
[
idx
].
dwType
=
element
->
Type
;
strided
->
u
.
input
[
idx
].
dwStride
=
stride
;
strided
->
u
.
input
[
idx
].
VBO
=
streamVBO
;
strided
->
u
.
input
[
idx
].
streamNo
=
element
->
Stream
;
if
(
!
useVertexShaderFunction
)
{
if
(
element
->
Usage
==
WINED3DDECLUSAGE_POSITION
)
strided
->
u
.
s
.
position_transformed
=
FALSE
;
else
if
(
element
->
Usage
==
WINED3DDECLUSAGE_POSITIONT
)
strided
->
u
.
s
.
position_transformed
=
TRUE
;
}
TRACE
(
"Loaded %s array %u [usage=%s, usage_idx=%u, "
"stream=%u, offset=%u, stride=%u, VBO=%u]
\n
"
,
useVertexShaderFunction
?
"shader"
:
"fixed function"
,
idx
,
debug_d3ddeclusage
(
element
->
Usage
),
element
->
UsageIndex
,
element
->
Stream
,
element
->
Offset
,
stride
,
streamVBO
);
strided
->
u
.
input
[
idx
].
lpData
=
data
;
strided
->
u
.
input
[
idx
].
dwType
=
element
->
Type
;
strided
->
u
.
input
[
idx
].
dwStride
=
stride
;
strided
->
u
.
input
[
idx
].
VBO
=
streamVBO
;
strided
->
u
.
input
[
idx
].
streamNo
=
element
->
Stream
;
if
(
!
useVertexShaderFunction
)
{
if
(
element
->
Usage
==
WINED3DDECLUSAGE_POSITION
)
strided
->
u
.
s
.
position_transformed
=
FALSE
;
else
if
(
element
->
Usage
==
WINED3DDECLUSAGE_POSITIONT
)
strided
->
u
.
s
.
position_transformed
=
TRUE
;
}
}
}
;
}
/* Now call PreLoad on all the vertex buffers. In the very rare case
* that the buffers stopps converting PreLoad will dirtify the VDECL again.
* The vertex buffer can now use the strided structure in the device instead of finding its
...
...
@@ -235,7 +235,7 @@ void primitiveDeclarationConvertToStridedData(
* once in there.
*/
for
(
i
=
0
;
i
<
numPreloadStreams
;
i
++
)
{
IWineD3DVertexBuffer_PreLoad
(
This
->
stateBlock
->
streamSource
[
preLoadStreams
[
i
]]);
IWineD3DVertexBuffer_PreLoad
(
This
->
stateBlock
->
streamSource
[
preLoadStreams
[
i
]]);
}
}
...
...
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