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
a9e04dd8
Commit
a9e04dd8
authored
Apr 06, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Index buffer data is unsigned.
parent
0899d857
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drawprim.c
dlls/wined3d/drawprim.c
+5
-5
No files found.
dlls/wined3d/drawprim.c
View file @
a9e04dd8
...
...
@@ -449,8 +449,8 @@ static void drawStridedSlow(IWineD3DDevice *iface, WineDirect3DVertexStridedData
unsigned
int
textureNo
=
0
;
unsigned
int
texture_idx
=
0
;
const
short
*
pIdxBufS
=
NULL
;
const
long
*
pIdxBufL
=
NULL
;
const
WORD
*
pIdxBufS
=
NULL
;
const
DWORD
*
pIdxBufL
=
NULL
;
LONG
vx_index
;
float
x
=
0
.
0
f
,
y
=
0
.
0
f
,
z
=
0
.
0
f
;
/* x,y,z coordinates */
float
rhw
=
0
.
0
f
;
/* rhw */
...
...
@@ -458,7 +458,7 @@ static void drawStridedSlow(IWineD3DDevice *iface, WineDirect3DVertexStridedData
DWORD
specularColor
=
0
;
/* Specular Color */
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
UINT
*
streamOffset
=
This
->
stateBlock
->
streamOffset
;
LONG
SkipnStrides
=
startVertex
+
This
->
stateBlock
->
loadBaseVertexIndex
;
DWORD
SkipnStrides
=
startVertex
+
This
->
stateBlock
->
loadBaseVertexIndex
;
BYTE
*
texCoords
[
WINED3DDP_MAXTEXCOORD
];
BYTE
*
diffuse
=
NULL
,
*
specular
=
NULL
,
*
normal
=
NULL
,
*
position
=
NULL
;
...
...
@@ -475,8 +475,8 @@ static void drawStridedSlow(IWineD3DDevice *iface, WineDirect3DVertexStridedData
idxData
=
((
IWineD3DIndexBufferImpl
*
)
This
->
stateBlock
->
pIndexData
)
->
resource
.
allocatedMemory
;
}
if
(
idxSize
==
2
)
pIdxBufS
=
(
const
short
*
)
idxData
;
else
pIdxBufL
=
(
const
long
*
)
idxData
;
if
(
idxSize
==
2
)
pIdxBufS
=
(
const
WORD
*
)
idxData
;
else
pIdxBufL
=
(
const
DWORD
*
)
idxData
;
}
/* Adding the stream offset once is cheaper than doing it every iteration. Do not modify the strided data, it is a pointer
...
...
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