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
1a28c7c5
Commit
1a28c7c5
authored
Dec 10, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Calculate texture levels in d3d8 instead of wined3d.
parent
af9ccb49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
texture.c
dlls/d3d8/texture.c
+9
-0
No files found.
dlls/d3d8/texture.c
View file @
1a28c7c5
...
...
@@ -1172,6 +1172,9 @@ HRESULT texture_init(struct d3d8_texture *texture, struct d3d8_device *device,
if
(
pool
!=
D3DPOOL_DEFAULT
||
(
usage
&
D3DUSAGE_DYNAMIC
))
surface_flags
|=
WINED3D_SURFACE_MAPPABLE
;
if
(
!
levels
)
levels
=
wined3d_log2i
(
max
(
width
,
height
))
+
1
;
wined3d_mutex_lock
();
hr
=
wined3d_texture_create
(
device
->
wined3d_device
,
&
desc
,
levels
,
surface_flags
,
texture
,
&
d3d8_texture_wined3d_parent_ops
,
&
texture
->
wined3d_texture
);
...
...
@@ -1214,6 +1217,9 @@ HRESULT cubetexture_init(struct d3d8_texture *texture, struct d3d8_device *devic
if
(
pool
!=
D3DPOOL_DEFAULT
||
(
usage
&
D3DUSAGE_DYNAMIC
))
surface_flags
|=
WINED3D_SURFACE_MAPPABLE
;
if
(
!
levels
)
levels
=
wined3d_log2i
(
edge_length
)
+
1
;
wined3d_mutex_lock
();
hr
=
wined3d_texture_create
(
device
->
wined3d_device
,
&
desc
,
levels
,
surface_flags
,
texture
,
&
d3d8_texture_wined3d_parent_ops
,
&
texture
->
wined3d_texture
);
...
...
@@ -1252,6 +1258,9 @@ HRESULT volumetexture_init(struct d3d8_texture *texture, struct d3d8_device *dev
desc
.
depth
=
depth
;
desc
.
size
=
0
;
if
(
!
levels
)
levels
=
wined3d_log2i
(
max
(
max
(
width
,
height
),
depth
))
+
1
;
wined3d_mutex_lock
();
hr
=
wined3d_texture_create
(
device
->
wined3d_device
,
&
desc
,
levels
,
0
,
texture
,
&
d3d8_texture_wined3d_parent_ops
,
&
texture
->
wined3d_texture
);
...
...
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