Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c9ca9c5a
Commit
c9ca9c5a
authored
Jan 28, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of CheckBumpMapCapability().
The color fixup being supported is implied by WINED3DFMT_FLAG_TEXTURE.
parent
4cdb03a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
directx.c
dlls/wined3d/directx.c
+1
-11
No files found.
dlls/wined3d/directx.c
View file @
c9ca9c5a
...
...
@@ -3429,16 +3429,6 @@ HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d *wined3
return
WINED3D_OK
;
}
/* Check if we support bumpmapping for a format */
static
BOOL
CheckBumpMapCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
format
)
{
/* Ask the fixed function pipeline implementation if it can deal
* with the conversion. If we've got a GL extension giving native
* support this will be an identity conversion. */
return
(
format
->
flags
&
WINED3DFMT_FLAG_BUMPMAP
)
&&
adapter
->
fragment_pipe
->
color_fixup_supported
(
format
->
color_fixup
);
}
/* Check if the given DisplayFormat + DepthStencilFormat combination is valid for the Adapter */
static
BOOL
CheckDepthStencilCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
display_format
,
const
struct
wined3d_format
*
ds_format
)
...
...
@@ -3831,7 +3821,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_LEGACYBUMPMAP
)
{
if
(
!
CheckBumpMapCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_BUMPMAP
))
{
TRACE
(
"[FAILED] - No legacy bumpmap support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
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