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
52478e38
Commit
52478e38
authored
Apr 16, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Bind the texture before calling wined3d_volume_upload_data() in…
wined3d: Bind the texture before calling wined3d_volume_upload_data() in wined3d_volume_load_location().
parent
9c20f9bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
volume.c
dlls/wined3d/volume.c
+6
-0
No files found.
dlls/wined3d/volume.c
View file @
52478e38
...
...
@@ -64,6 +64,8 @@ void wined3d_volume_get_pitch(const struct wined3d_volume *volume, UINT *row_pit
TRACE
(
"Returning row pitch %u, slice pitch %u.
\n
"
,
*
row_pitch
,
*
slice_pitch
);
}
/* This call just uploads data, the caller is responsible for binding the
* correct texture. */
/* Context activation is done by the caller. */
void
wined3d_volume_upload_data
(
struct
wined3d_volume
*
volume
,
const
struct
wined3d_context
*
context
,
const
struct
wined3d_const_bo_address
*
data
)
...
...
@@ -273,11 +275,15 @@ static void wined3d_volume_load_location(struct wined3d_volume *volume,
else
if
(
volume
->
locations
&
WINED3D_LOCATION_SYSMEM
)
{
struct
wined3d_const_bo_address
data
=
{
0
,
volume
->
resource
.
heap_memory
};
wined3d_texture_bind_and_dirtify
(
volume
->
container
,
context
,
location
==
WINED3D_LOCATION_TEXTURE_SRGB
);
wined3d_volume_upload_data
(
volume
,
context
,
&
data
);
}
else
if
(
volume
->
locations
&
WINED3D_LOCATION_BUFFER
)
{
struct
wined3d_const_bo_address
data
=
{
volume
->
pbo
,
NULL
};
wined3d_texture_bind_and_dirtify
(
volume
->
container
,
context
,
location
==
WINED3D_LOCATION_TEXTURE_SRGB
);
wined3d_volume_upload_data
(
volume
,
context
,
&
data
);
}
else
if
(
volume
->
locations
&
WINED3D_LOCATION_TEXTURE_RGB
)
...
...
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