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
df70800b
Commit
df70800b
authored
Feb 16, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the tex_type field of the FFP fragment settings from the resource's GL type.
parent
36597df6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
22 deletions
+1
-22
utils.c
dlls/wined3d/utils.c
+1
-22
No files found.
dlls/wined3d/utils.c
View file @
df70800b
...
...
@@ -6437,30 +6437,9 @@ void wined3d_ffp_get_fs_settings(const struct wined3d_context *context, const st
else
settings
->
op
[
i
].
color_fixup
=
texture
->
resource
.
format
->
color_fixup
;
if
(
ignore_textype
)
{
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_1D
;
}
else
{
switch
(
wined3d_texture_gl
(
texture
)
->
target
)
{
case
GL_TEXTURE_1D
:
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_1D
;
break
;
case
GL_TEXTURE_2D
:
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_2D
;
break
;
case
GL_TEXTURE_3D
:
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_3D
;
break
;
case
GL_TEXTURE_CUBE_MAP_ARB
:
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_CUBE
;
break
;
case
GL_TEXTURE_RECTANGLE_ARB
:
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_RECT
;
break
;
}
}
settings
->
op
[
i
].
tex_type
=
texture
->
resource
.
gl_type
;
}
else
{
settings
->
op
[
i
].
color_fixup
=
COLOR_FIXUP_IDENTITY
;
settings
->
op
[
i
].
tex_type
=
WINED3D_GL_RES_TYPE_TEX_1D
;
...
...
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