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
4cdb03a7
Commit
4cdb03a7
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 CheckTextureCapability().
parent
7c8dab24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
directx.c
dlls/wined3d/directx.c
+7
-11
No files found.
dlls/wined3d/directx.c
View file @
4cdb03a7
...
...
@@ -3526,12 +3526,6 @@ static BOOL CheckRenderTargetCapability(const struct wined3d_adapter *adapter,
return
FALSE
;
}
/* Check if a texture format is supported on the given adapter */
static
BOOL
CheckTextureCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
format
)
{
return
format
->
flags
&
WINED3DFMT_FLAG_TEXTURE
;
}
static
BOOL
CheckSurfaceCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
adapter_format
,
const
struct
wined3d_format
*
check_format
,
BOOL
no3d
)
...
...
@@ -3568,8 +3562,10 @@ static BOOL CheckSurfaceCapability(const struct wined3d_adapter *adapter,
}
}
/* All format that are supported for textures are supported for surfaces as well */
if
(
CheckTextureCapability
(
adapter
,
check_format
))
return
TRUE
;
/* All formats that are supported for textures are supported for surfaces
* as well. */
if
(
check_format
->
flags
&
WINED3DFMT_FLAG_TEXTURE
)
return
TRUE
;
/* All depth stencil formats are supported on surfaces */
if
(
CheckDepthStencilCapability
(
adapter
,
adapter_format
,
check_format
))
return
TRUE
;
...
...
@@ -3630,7 +3626,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
return
WINED3DERR_NOTAVAILABLE
;
}
if
(
!
CheckTextureCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_TEXTURE
))
{
TRACE
(
"[FAILED] - Cube texture format not supported.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -3789,7 +3785,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
return
WINED3DERR_NOTAVAILABLE
;
}
if
(
!
CheckTextureCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_TEXTURE
))
{
TRACE
(
"[FAILED] - Texture format not supported.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -3926,7 +3922,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
return
WINED3DERR_NOTAVAILABLE
;
}
if
(
!
CheckTextureCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_TEXTURE
))
{
TRACE
(
"[FAILED] - Format not supported.
\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