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
acb18ea3
Commit
acb18ea3
authored
Apr 10, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the "binding" field from struct blt_info.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6fc8118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
surface.c
dlls/wined3d/surface.c
+0
-9
No files found.
dlls/wined3d/surface.c
View file @
acb18ea3
...
@@ -38,7 +38,6 @@ static const DWORD surface_simple_locations = WINED3D_LOCATION_SYSMEM
...
@@ -38,7 +38,6 @@ static const DWORD surface_simple_locations = WINED3D_LOCATION_SYSMEM
struct
blt_info
struct
blt_info
{
{
GLenum
binding
;
GLenum
bind_target
;
GLenum
bind_target
;
enum
wined3d_gl_resource_type
tex_type
;
enum
wined3d_gl_resource_type
tex_type
;
struct
wined3d_vec3
texcoords
[
4
];
struct
wined3d_vec3
texcoords
[
4
];
...
@@ -80,7 +79,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -80,7 +79,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
FIXME
(
"Unsupported texture target %#x.
\n
"
,
target
);
FIXME
(
"Unsupported texture target %#x.
\n
"
,
target
);
/* Fall back to GL_TEXTURE_2D */
/* Fall back to GL_TEXTURE_2D */
case
GL_TEXTURE_2D
:
case
GL_TEXTURE_2D
:
info
->
binding
=
GL_TEXTURE_BINDING_2D
;
info
->
bind_target
=
GL_TEXTURE_2D
;
info
->
bind_target
=
GL_TEXTURE_2D
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_2D
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_2D
;
coords
[
0
].
x
=
(
float
)
rect
->
left
/
w
;
coords
[
0
].
x
=
(
float
)
rect
->
left
/
w
;
...
@@ -101,7 +99,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -101,7 +99,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_RECTANGLE_ARB
:
case
GL_TEXTURE_RECTANGLE_ARB
:
info
->
binding
=
GL_TEXTURE_BINDING_RECTANGLE_ARB
;
info
->
bind_target
=
GL_TEXTURE_RECTANGLE_ARB
;
info
->
bind_target
=
GL_TEXTURE_RECTANGLE_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_RECT
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_RECT
;
coords
[
0
].
x
=
rect
->
left
;
coords
[
0
].
y
=
rect
->
top
;
coords
[
0
].
z
=
0
.
0
f
;
coords
[
0
].
x
=
rect
->
left
;
coords
[
0
].
y
=
rect
->
top
;
coords
[
0
].
z
=
0
.
0
f
;
...
@@ -111,7 +108,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -111,7 +108,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
case
GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
info
->
binding
=
GL_TEXTURE_BINDING_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
...
@@ -123,7 +119,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -123,7 +119,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
case
GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
info
->
binding
=
GL_TEXTURE_BINDING_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
...
@@ -135,7 +130,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -135,7 +130,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
case
GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
info
->
binding
=
GL_TEXTURE_BINDING_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
...
@@ -147,7 +141,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -147,7 +141,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
case
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
info
->
binding
=
GL_TEXTURE_BINDING_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
...
@@ -159,7 +152,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -159,7 +152,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
case
GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
info
->
binding
=
GL_TEXTURE_BINDING_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
...
@@ -171,7 +163,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
...
@@ -171,7 +163,6 @@ static void texture2d_get_blt_info(const struct wined3d_texture *texture,
break
;
break
;
case
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
case
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
info
->
binding
=
GL_TEXTURE_BINDING_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
bind_target
=
GL_TEXTURE_CUBE_MAP_ARB
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
info
->
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
cube_coords_float
(
rect
,
w
,
h
,
&
f
);
...
...
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