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
aa71065d
Commit
aa71065d
authored
May 28, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly preload index buffers.
parent
5e5b435e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
context.c
dlls/wined3d/context.c
+7
-0
device.c
dlls/wined3d/device.c
+2
-9
No files found.
dlls/wined3d/context.c
View file @
aa71065d
...
...
@@ -2336,6 +2336,13 @@ BOOL context_apply_draw_state(struct wined3d_context *context, struct wined3d_de
device_preload_textures
(
device
);
if
(
isStateDirty
(
context
,
STATE_VDECL
)
||
isStateDirty
(
context
,
STATE_STREAMSRC
))
device_update_stream_info
(
device
,
context
->
gl_info
);
if
(
state
->
index_buffer
&&
!
state
->
user_stream
)
{
if
(
device
->
strided_streams
.
all_vbo
)
wined3d_buffer_preload
(
state
->
index_buffer
);
else
buffer_get_sysmem
(
state
->
index_buffer
,
context
->
gl_info
);
}
ENTER_GL
();
if
(
context
->
last_was_blit
)
...
...
dlls/wined3d/device.c
View file @
aa71065d
...
...
@@ -447,15 +447,8 @@ void device_update_stream_info(struct wined3d_device *device, const struct wined
}
}
if
(
state
->
index_buffer
&&
!
state
->
user_stream
)
{
if
(
prev_all_vbo
!=
stream_info
->
all_vbo
)
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
if
(
stream_info
->
all_vbo
)
wined3d_buffer_preload
(
state
->
index_buffer
);
else
buffer_get_sysmem
(
state
->
index_buffer
,
gl_info
);
}
if
(
prev_all_vbo
!=
stream_info
->
all_vbo
)
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
}
static
void
device_preload_texture
(
const
struct
wined3d_state
*
state
,
unsigned
int
idx
)
...
...
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