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
9e44fadb
Commit
9e44fadb
authored
Nov 14, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Set the cube map flags for the root surface in ddraw_surface_create_texture() as well.
parent
80055e1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
ddraw.c
dlls/ddraw/ddraw.c
+0
-7
surface.c
dlls/ddraw/surface.c
+3
-4
No files found.
dlls/ddraw/ddraw.c
View file @
9e44fadb
...
...
@@ -3060,13 +3060,6 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
desc2
.
ddsCaps
.
dwCaps
|=
DDSCAPS_FRONTBUFFER
;
}
/* The root surface in a cube map is positive x */
if
(
desc2
.
ddsCaps
.
dwCaps2
&
DDSCAPS2_CUBEMAP
)
{
desc2
.
ddsCaps
.
dwCaps2
&=
~
DDSCAPS2_CUBEMAP_ALLFACES
;
desc2
.
ddsCaps
.
dwCaps2
|=
DDSCAPS2_CUBEMAP_POSITIVEX
;
}
if
((
desc2
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
&&
(
ddraw
->
cooperative_level
&
DDSCL_EXCLUSIVE
))
{
struct
wined3d_swapchain_desc
swapchain_desc
;
...
...
dlls/ddraw/surface.c
View file @
9e44fadb
...
...
@@ -5744,10 +5744,6 @@ HRESULT ddraw_surface_create_texture(struct ddraw *ddraw, DDSURFACEDESC2 *desc,
{
resource
=
wined3d_texture_get_sub_resource
(
wined3d_texture
,
i
*
levels
+
j
);
mip
=
wined3d_resource_get_parent
(
resource
);
if
(
mip
==
root
)
continue
;
mip_desc
=
&
mip
->
surface_desc
;
if
(
j
)
...
...
@@ -5783,6 +5779,9 @@ HRESULT ddraw_surface_create_texture(struct ddraw *ddraw, DDSURFACEDESC2 *desc,
}
if
(
mip
==
root
)
continue
;
*
attach
=
mip
;
attach
=
&
mip
->
complex_array
[
0
];
}
...
...
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