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
e35f773b
Commit
e35f773b
authored
Aug 20, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Also issue any queries for index buffers in drawPrimitive().
parent
54976a03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
drawprim.c
dlls/wined3d/drawprim.c
+7
-1
No files found.
dlls/wined3d/drawprim.c
View file @
e35f773b
...
...
@@ -580,6 +580,7 @@ static void remove_vbos(const struct wined3d_gl_info *gl_info,
void
drawPrimitive
(
struct
wined3d_device
*
device
,
UINT
index_count
,
UINT
StartIdx
,
BOOL
indexed
,
const
void
*
idxData
)
{
const
struct
wined3d_state
*
state
=
&
device
->
stateBlock
->
state
;
struct
wined3d_event_query
*
ib_query
=
NULL
;
const
struct
wined3d_gl_info
*
gl_info
;
struct
wined3d_context
*
context
;
unsigned
int
i
;
...
...
@@ -683,7 +684,10 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
if
(
!
index_buffer
->
buffer_object
||
!
stream_info
->
all_vbo
)
idxData
=
index_buffer
->
resource
.
allocatedMemory
;
else
{
ib_query
=
index_buffer
->
query
;
idxData
=
NULL
;
}
}
if
(
state
->
index_format
==
WINED3DFMT_R16_UINT
)
...
...
@@ -764,7 +768,9 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
/* Finished updating the screen, restore lock */
LEAVE_GL
();
for
(
i
=
0
;
i
<
device
->
num_buffer_queries
;
++
i
)
if
(
ib_query
)
wined3d_event_query_issue
(
ib_query
,
device
);
for
(
i
=
0
;
i
<
device
->
num_buffer_queries
;
++
i
)
{
wined3d_event_query_issue
(
device
->
buffer_queries
[
i
],
device
);
}
...
...
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