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
c2363f75
Commit
c2363f75
authored
Sep 30, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_gl_info structure to send_attribute().
parent
5097623d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drawprim.c
dlls/wined3d/drawprim.c
+4
-5
No files found.
dlls/wined3d/drawprim.c
View file @
c2363f75
...
...
@@ -306,11 +306,9 @@ static void drawStridedSlow(IWineD3DDevice *iface, const struct wined3d_context
}
/* GL locking is done by the caller */
static
inline
void
send_attribute
(
IWineD3DDeviceImpl
*
This
,
static
inline
void
send_attribute
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_format_id
format
,
const
UINT
index
,
const
void
*
ptr
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
switch
(
format
)
{
case
WINED3DFMT_R32_FLOAT
:
...
...
@@ -469,7 +467,7 @@ static void drawStridedSlowVs(IWineD3DDevice *iface, const struct wined3d_stream
+
si
->
elements
[
i
].
stride
*
SkipnStrides
+
stateblock
->
state
.
streams
[
si
->
elements
[
i
].
stream_idx
].
offset
;
send_attribute
(
This
,
si
->
elements
[
i
].
format
->
id
,
i
,
ptr
);
send_attribute
(
gl_info
,
si
->
elements
[
i
].
format
->
id
,
i
,
ptr
);
}
SkipnStrides
++
;
}
...
...
@@ -486,6 +484,7 @@ static inline void drawStridedInstanced(IWineD3DDevice *iface, const struct wine
int
numInstancedAttribs
=
0
,
j
;
UINT
instancedData
[
sizeof
(
si
->
elements
)
/
sizeof
(
*
si
->
elements
)
/* 16 */
];
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
struct
wined3d_gl_info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
IWineD3DStateBlockImpl
*
stateblock
=
This
->
stateBlock
;
if
(
!
idxSize
)
...
...
@@ -542,7 +541,7 @@ static inline void drawStridedInstanced(IWineD3DDevice *iface, const struct wine
ptr
+=
(
ULONG_PTR
)
buffer_get_sysmem
(
vb
,
&
This
->
adapter
->
gl_info
);
}
send_attribute
(
This
,
si
->
elements
[
instancedData
[
j
]].
format
->
id
,
instancedData
[
j
],
ptr
);
send_attribute
(
gl_info
,
si
->
elements
[
instancedData
[
j
]].
format
->
id
,
instancedData
[
j
],
ptr
);
}
glDrawElements
(
glPrimitiveType
,
numberOfVertices
,
idxSize
==
2
?
GL_UNSIGNED_SHORT
:
GL_UNSIGNED_INT
,
...
...
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