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
Show 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,
...
@@ -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
)
void
drawPrimitive
(
struct
wined3d_device
*
device
,
UINT
index_count
,
UINT
StartIdx
,
BOOL
indexed
,
const
void
*
idxData
)
{
{
const
struct
wined3d_state
*
state
=
&
device
->
stateBlock
->
state
;
const
struct
wined3d_state
*
state
=
&
device
->
stateBlock
->
state
;
struct
wined3d_event_query
*
ib_query
=
NULL
;
const
struct
wined3d_gl_info
*
gl_info
;
const
struct
wined3d_gl_info
*
gl_info
;
struct
wined3d_context
*
context
;
struct
wined3d_context
*
context
;
unsigned
int
i
;
unsigned
int
i
;
...
@@ -683,8 +684,11 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
...
@@ -683,8 +684,11 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
if
(
!
index_buffer
->
buffer_object
||
!
stream_info
->
all_vbo
)
if
(
!
index_buffer
->
buffer_object
||
!
stream_info
->
all_vbo
)
idxData
=
index_buffer
->
resource
.
allocatedMemory
;
idxData
=
index_buffer
->
resource
.
allocatedMemory
;
else
else
{
ib_query
=
index_buffer
->
query
;
idxData
=
NULL
;
idxData
=
NULL
;
}
}
}
if
(
state
->
index_format
==
WINED3DFMT_R16_UINT
)
if
(
state
->
index_format
==
WINED3DFMT_R16_UINT
)
idx_size
=
2
;
idx_size
=
2
;
...
@@ -764,7 +768,9 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
...
@@ -764,7 +768,9 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
/* Finished updating the screen, restore lock */
/* Finished updating the screen, restore lock */
LEAVE_GL
();
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
);
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